Commit 9133e39b8473ee118c756b7e9356b0e5dbe6e18d
1 parent
4369415f
Push common interrupt variables to cpu-defs.h (Glauber Costa)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4612 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
10 changed files
with
4 additions
and
18 deletions
cpu-defs.h
| ... | ... | @@ -160,6 +160,10 @@ typedef struct CPUTLBEntry { |
| 160 | 160 | int nb_watchpoints; \ |
| 161 | 161 | int watchpoint_hit; \ |
| 162 | 162 | \ |
| 163 | + /* Core interrupt code */ \ | |
| 164 | + jmp_buf jmp_env; \ | |
| 165 | + int exception_index; \ | |
| 166 | + \ | |
| 163 | 167 | void *next_cpu; /* next CPU sharing TB cache */ \ |
| 164 | 168 | int cpu_index; /* CPU index (informative) */ \ |
| 165 | 169 | /* user data */ \ | ... | ... |
target-alpha/cpu.h
| ... | ... | @@ -282,11 +282,9 @@ struct CPUAlphaState { |
| 282 | 282 | /* Those resources are used only in Qemu core */ |
| 283 | 283 | CPU_COMMON |
| 284 | 284 | |
| 285 | - jmp_buf jmp_env; | |
| 286 | 285 | int user_mode_only; /* user mode only simulation */ |
| 287 | 286 | uint32_t hflags; |
| 288 | 287 | |
| 289 | - int exception_index; | |
| 290 | 288 | int error_code; |
| 291 | 289 | int interrupt_request; |
| 292 | 290 | ... | ... |
target-arm/cpu.h
target-cris/cpu.h
| ... | ... | @@ -123,7 +123,6 @@ typedef struct CPUCRISState { |
| 123 | 123 | /* X flag at the time of cc snapshot. */ |
| 124 | 124 | int cc_x; |
| 125 | 125 | |
| 126 | - int exception_index; | |
| 127 | 126 | int interrupt_request; |
| 128 | 127 | int interrupt_vector; |
| 129 | 128 | int fault_vector; |
| ... | ... | @@ -158,7 +157,6 @@ typedef struct CPUCRISState { |
| 158 | 157 | int features; |
| 159 | 158 | int user_mode_only; |
| 160 | 159 | |
| 161 | - jmp_buf jmp_env; | |
| 162 | 160 | CPU_COMMON |
| 163 | 161 | } CPUCRISState; |
| 164 | 162 | ... | ... |
target-i386/cpu.h
target-m68k/cpu.h
target-mips/cpu.h
| ... | ... | @@ -412,8 +412,6 @@ struct CPUMIPSState { |
| 412 | 412 | int32_t CP0_DESAVE; |
| 413 | 413 | /* Qemu */ |
| 414 | 414 | int interrupt_request; |
| 415 | - jmp_buf jmp_env; | |
| 416 | - int exception_index; | |
| 417 | 415 | int error_code; |
| 418 | 416 | int user_mode_only; /* user mode only simulation */ |
| 419 | 417 | uint32_t hflags; /* CPU State */ | ... | ... |
target-ppc/cpu.h
| ... | ... | @@ -646,7 +646,6 @@ struct CPUPPCState { |
| 646 | 646 | int bfd_mach; |
| 647 | 647 | uint32_t flags; |
| 648 | 648 | |
| 649 | - int exception_index; | |
| 650 | 649 | int error_code; |
| 651 | 650 | int interrupt_request; |
| 652 | 651 | uint32_t pending_interrupts; |
| ... | ... | @@ -672,7 +671,6 @@ struct CPUPPCState { |
| 672 | 671 | opc_handler_t *opcodes[0x40]; |
| 673 | 672 | |
| 674 | 673 | /* Those resources are used only in Qemu core */ |
| 675 | - jmp_buf jmp_env; | |
| 676 | 674 | int user_mode_only; /* user mode only simulation */ |
| 677 | 675 | target_ulong hflags; /* hflags is a MSR & HFLAGS_MASK */ |
| 678 | 676 | target_ulong hflags_nmsr; /* specific hflags, not comming from MSR */ | ... | ... |
target-sh4/cpu.h
| ... | ... | @@ -114,10 +114,8 @@ typedef struct CPUSH4State { |
| 114 | 114 | uint32_t expevt; /* exception event register */ |
| 115 | 115 | uint32_t intevt; /* interrupt event register */ |
| 116 | 116 | |
| 117 | - jmp_buf jmp_env; | |
| 118 | 117 | int user_mode_only; |
| 119 | 118 | int interrupt_request; |
| 120 | - int exception_index; | |
| 121 | 119 | CPU_COMMON tlb_t utlb[UTLB_SIZE]; /* unified translation table */ |
| 122 | 120 | tlb_t itlb[ITLB_SIZE]; /* instruction translation table */ |
| 123 | 121 | void *intc_handle; | ... | ... |
target-sparc/cpu.h
| ... | ... | @@ -214,9 +214,7 @@ typedef struct CPUSPARCState { |
| 214 | 214 | uint32_t pil_in; /* incoming interrupt level bitmap */ |
| 215 | 215 | int psref; /* enable fpu */ |
| 216 | 216 | target_ulong version; |
| 217 | - jmp_buf jmp_env; | |
| 218 | 217 | int user_mode_only; |
| 219 | - int exception_index; | |
| 220 | 218 | int interrupt_index; |
| 221 | 219 | int interrupt_request; |
| 222 | 220 | uint32_t mmu_bm; | ... | ... |