aboutsummaryrefslogtreecommitdiff
path: root/target-sparc/cpu.h
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-02-13 19:02:42 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-02-13 19:02:42 +0000
commit878d3096d20c3b77f5aaa25460d470bc7d8da15b (patch)
treea34913f89b08b9e0d605f0852fbf95b38c1b3f1e /target-sparc/cpu.h
parent1a0c3292b58704843ab97e71c9836f653a31090b (diff)
downloadqemu-878d3096d20c3b77f5aaa25460d470bc7d8da15b.zip
qemu-878d3096d20c3b77f5aaa25460d470bc7d8da15b.tar.gz
qemu-878d3096d20c3b77f5aaa25460d470bc7d8da15b.tar.bz2
sparc fixes
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1291 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sparc/cpu.h')
-rw-r--r--target-sparc/cpu.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h
index a4b6c73..f07464d 100644
--- a/target-sparc/cpu.h
+++ b/target-sparc/cpu.h
@@ -18,15 +18,17 @@
/*#define EXCP_INTERRUPT 0x100*/
/* trap definitions */
+#define TT_TFAULT 0x01
#define TT_ILL_INSN 0x02
#define TT_PRIV_INSN 0x03
#define TT_NFPU_INSN 0x04
#define TT_WIN_OVF 0x05
#define TT_WIN_UNF 0x06
#define TT_FP_EXCP 0x08
+#define TT_DFAULT 0x09
+#define TT_EXTINT 0x10
#define TT_DIV_ZERO 0x2a
#define TT_TRAP 0x80
-#define TT_EXTINT 0x10
#define PSR_NEG (1<<23)
#define PSR_ZERO (1<<22)
@@ -142,7 +144,6 @@ typedef struct CPUSPARCState {
/* 0 = kernel, 1 = user (may have 2 = kernel code, 3 = user code ?) */
CPUTLBEntry tlb_read[2][CPU_TLB_SIZE];
CPUTLBEntry tlb_write[2][CPU_TLB_SIZE];
- int error_code;
/* MMU regs */
uint32_t mmuregs[16];
/* temporary float registers */