* ========== Copyright Header Begin ==========================================
* OpenSPARC T2 Processor File: si_defines.h
* Copyright (C) 1995-2007 Sun Microsystems, Inc. All Rights Reserved
* 4150 Network Circle, Santa Clara, California 95054, U.S.A.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* For the avoidance of doubt, and except that if any non-GPL license
* choice is available it will apply instead, Sun elects to use only
* the General Public License version 2 (GPLv2) at this time for any
* software where a choice of GPL license versions is made
* available with the language indicating that GPLv2 or any later version
* may be used, or where a choice of which version of the GPL is applied is
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* ========== Copyright Header End ============================================
! This file is used to compile the v9 Test Suite from Sparc International
.
#define CWP_INIT INIT_CWP
#define CANSAVE_INIT INIT_CANSAVE
#define INIT_CANRESTORE 0
#define CANRESTORE_INIT INIT_CANRESTORE
#define OTHERWIN_INIT INIT_OTHERWIN
#define CLEANWIN_INIT INIT_CLEANWIN
#define EXIT_TRAP_NO 0x6f
#define USR2SUP_TRAP_NO 0x6e
#define USER_TEXT_START user_text_start
!#define ENTRY_POINT USER_TEXT_START
#define RESET_HANDLER RESET_HANDLER_default
#ifndef WATCHDOG_RESET_HANDLER
#define WATCHDOG_RESET_HANDLER WATCHDOG_RESET_HANDLER_default
#ifndef EXTERNAL_RESET_HANDLER
#define EXTERNAL_RESET_HANDLER EXTERNAL_RESET_HANDLER_default
#ifndef SOFTWARE_RESET_HANDLER
#define SOFTWARE_RESET_HANDLER SOFTWARE_RESET_HANDLER_default
#define REDMODE_HANDLER REDMODE_HANDLER_default
#define EXIT_TRAP_NO 0x6f
#define USR2SUP_TRAP_NO 0x6e
#define EXIT1 call exit_ldb
#define writemem(addr,r_val,r_tmp1) \
#define readmem(addr,r_tmp,r_dst) \
#define cmpreg(reg1,reg2) \
#define icmpreg(reg1,reg2) \
#define chkreg(reg1,reg2) \
#define fcmpreg(reg1,reg2) \
#define setd(val1,val2,reg1,reg2) \
#define settrp(tbladdr,tmpreg1,tmpreg2) \
#define dcmp(reg11,reg12,reg21,reg22) \
#define qcmp(reg11,reg12,reg13,reg14,reg21,reg22,reg23,reg24) \
#define fcmpdreg(reg1,reg2) \
#define fcmpqreg(reg1,reg2) \
#define setfcc0(val,tmpreg1,tmpreg2)\
.word 0xffffffff,0xfffff3ff;\
ldx [tmpreg1+8],tmpreg1;\
and tmpreg2,tmpreg1,tmpreg2;\
sllx tmpreg1,10,tmpreg1;\
or tmpreg2,tmpreg1,tmpreg2;\
#define setfcc1(val,tmpreg1,tmpreg2)\
.word 0xfffffffc,0xffffffff;\
ldx [tmpreg1+8],tmpreg1;\
and tmpreg2,tmpreg1,tmpreg2;\
sllx tmpreg1,32,tmpreg1;\
or tmpreg2,tmpreg1,tmpreg2;\
#define setfcc2(val,tmpreg1,tmpreg2)\
.word 0xfffffff3,0xffffffff;\
ldx [tmpreg1+8],tmpreg1;\
and tmpreg2,tmpreg1,tmpreg2;\
sllx tmpreg1,34,tmpreg1;\
or tmpreg2,tmpreg1,tmpreg2;\
#define setfcc3(val,tmpreg1,tmpreg2)\
.word 0xffffffcf,0xffffffff;\
ldx [tmpreg1+8],tmpreg1;\
and tmpreg2,tmpreg1,tmpreg2;\
sllx tmpreg1,36,tmpreg1;\
or tmpreg2,tmpreg1,tmpreg2;\
#define NOP4 nop;nop;nop;nop
#define CHECK_VALID(reg,val,err) cmp %reg,val;\
#define WSTATE_NORMAL_MAX 0x7