diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-01-23 22:45:22 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-01-23 22:45:22 +0000 |
commit | 9c2149c8e06cf6fbf1bd5096a50486abc3b71f17 (patch) | |
tree | f2a4e4ad3e436d708dc1038d4ab612ef2f06f9b5 /target-mips/cpu.h | |
parent | 17c275d9ceb1921c43a4255adf6bd768c90c9992 (diff) |
Implementing dmfc/dmtc.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2348 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips/cpu.h')
-rw-r--r-- | target-mips/cpu.h | 67 |
1 files changed, 34 insertions, 33 deletions
diff --git a/target-mips/cpu.h b/target-mips/cpu.h index c1001c7fce..8781e3098d 100644 --- a/target-mips/cpu.h +++ b/target-mips/cpu.h @@ -44,7 +44,7 @@ union fpr_t { typedef struct tlb_t tlb_t; struct tlb_t { target_ulong VPN; - uint_fast32_t PageMask; + uint32_t PageMask; uint_fast8_t ASID; uint_fast16_t G:1; uint_fast16_t C0:3; @@ -110,20 +110,20 @@ struct CPUMIPSState { tlb_t tlb[MIPS_TLB_MAX]; uint32_t tlb_in_use; #endif - uint32_t CP0_index; - uint32_t CP0_random; - uint64_t CP0_EntryLo0; - uint64_t CP0_EntryLo1; - uint64_t CP0_Context; - uint32_t CP0_PageMask; - uint32_t CP0_PageGrain; - uint32_t CP0_Wired; - uint32_t CP0_HWREna; + int32_t CP0_Index; + int32_t CP0_Random; + target_ulong CP0_EntryLo0; + target_ulong CP0_EntryLo1; + target_ulong CP0_Context; + int32_t CP0_PageMask; + int32_t CP0_PageGrain; + int32_t CP0_Wired; + int32_t CP0_HWREna; target_ulong CP0_BadVAddr; - uint32_t CP0_Count; - uint64_t CP0_EntryHi; - uint32_t CP0_Compare; - uint32_t CP0_Status; + int32_t CP0_Count; + target_ulong CP0_EntryHi; + int32_t CP0_Compare; + int32_t CP0_Status; #define CP0St_CU3 31 #define CP0St_CU2 30 #define CP0St_CU1 29 @@ -146,9 +146,10 @@ struct CPUMIPSState { #define CP0St_ERL 2 #define CP0St_EXL 1 #define CP0St_IE 0 - uint32_t CP0_IntCtl; - uint32_t CP0_SRSCtl; - uint32_t CP0_Cause; + int32_t CP0_IntCtl; + int32_t CP0_SRSCtl; + int32_t CP0_SRSMap; + int32_t CP0_Cause; #define CP0Ca_BD 31 #define CP0Ca_TI 30 #define CP0Ca_CE 28 @@ -159,9 +160,9 @@ struct CPUMIPSState { #define CP0Ca_IP 8 #define CP0Ca_EC 2 target_ulong CP0_EPC; - uint32_t CP0_PRid; + int32_t CP0_PRid; target_ulong CP0_EBase; - uint32_t CP0_Config0; + int32_t CP0_Config0; #define CP0C0_M 31 #define CP0C0_K23 28 #define CP0C0_KU 25 @@ -174,7 +175,7 @@ struct CPUMIPSState { #define CP0C0_MT 7 #define CP0C0_VI 3 #define CP0C0_K0 0 - uint32_t CP0_Config1; + int32_t CP0_Config1; #define CP0C1_M 31 #define CP0C1_MMU 25 #define CP0C1_IS 22 @@ -190,7 +191,7 @@ struct CPUMIPSState { #define CP0C1_CA 2 #define CP0C1_EP 1 #define CP0C1_FP 0 - uint32_t CP0_Config2; + int32_t CP0_Config2; #define CP0C2_M 31 #define CP0C2_TU 28 #define CP0C2_TS 24 @@ -200,7 +201,7 @@ struct CPUMIPSState { #define CP0C2_SS 8 #define CP0C2_SL 4 #define CP0C2_SA 0 - uint32_t CP0_Config3; + int32_t CP0_Config3; #define CP0C3_M 31 #define CP0C3_DSPP 10 #define CP0C3_LPA 7 @@ -211,11 +212,11 @@ struct CPUMIPSState { #define CP0C3_SM 1 #define CP0C3_TL 0 target_ulong CP0_LLAddr; - uint32_t CP0_WatchLo; - uint32_t CP0_WatchHi; - uint32_t CP0_XContext; - uint32_t CP0_Framemask; - uint32_t CP0_Debug; + target_ulong CP0_WatchLo; + int32_t CP0_WatchHi; + target_ulong CP0_XContext; + int32_t CP0_Framemask; + int32_t CP0_Debug; #define CPDB_DBD 31 #define CP0DB_DM 30 #define CP0DB_LSNM 28 @@ -235,13 +236,13 @@ struct CPUMIPSState { #define CP0DB_DBp 1 #define CP0DB_DSS 0 target_ulong CP0_DEPC; - uint32_t CP0_Performance0; - uint32_t CP0_TagLo; - uint32_t CP0_DataLo; - uint32_t CP0_TagHi; - uint32_t CP0_DataHi; + int32_t CP0_Performance0; + int32_t CP0_TagLo; + int32_t CP0_DataLo; + int32_t CP0_TagHi; + int32_t CP0_DataHi; target_ulong CP0_ErrorEPC; - uint32_t CP0_DESAVE; + int32_t CP0_DESAVE; /* Qemu */ int interrupt_request; jmp_buf jmp_env; |