Push common interrupt variables to cpu-defs.h (Glauber Costa)
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 29 May 2008 10:08:06 +0000 (10:08 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 29 May 2008 10:08:06 +0000 (10:08 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4612 c046a42c-6fe2-441c-8c8c-71466251a162

cpu-defs.h
target-alpha/cpu.h
target-arm/cpu.h
target-cris/cpu.h
target-i386/cpu.h
target-m68k/cpu.h
target-mips/cpu.h
target-ppc/cpu.h
target-sh4/cpu.h
target-sparc/cpu.h

index 7001ca4b257a04e0e7296c930f27a244979272aa..f7f5f1730d1002336c1eac73ba79010447512853 100644 (file)
@@ -160,6 +160,10 @@ typedef struct CPUTLBEntry {
     int nb_watchpoints;                                                 \
     int watchpoint_hit;                                                 \
                                                                         \
+    /* Core interrupt code */                                           \
+    jmp_buf jmp_env;                                                    \
+    int exception_index;                                                \
+                                                                        \
     void *next_cpu; /* next CPU sharing TB cache */                     \
     int cpu_index; /* CPU index (informative) */                        \
     /* user data */                                                     \
index 0331e50a7fbfdd87ab98b0f67d4d76a580576d55..c955997fcee6bd1cd262b199c189b0227b87810e 100644 (file)
@@ -282,11 +282,9 @@ struct CPUAlphaState {
     /* Those resources are used only in Qemu core */
     CPU_COMMON
 
-    jmp_buf jmp_env;
     int user_mode_only; /* user mode only simulation */
     uint32_t hflags;
 
-    int exception_index;
     int error_code;
     int interrupt_request;
 
index f7252f5c212df57f403b76aa41ff85a143571cb6..10428086659398363fbbf360b90924d23bfd0a63 100644 (file)
@@ -157,8 +157,6 @@ typedef struct CPUARMState {
     void *irq_opaque;
 
     /* exception/interrupt handling */
-    jmp_buf jmp_env;
-    int exception_index;
     int interrupt_request;
     int user_mode_only;
 
index 035b04fce91915212a7acd77d0d692e6f2339148..14b09d8cb666bf580e7a7a3f320f25d7c255b6fd 100644 (file)
@@ -123,7 +123,6 @@ typedef struct CPUCRISState {
        /* X flag at the time of cc snapshot.  */
        int cc_x;
 
-       int exception_index;
        int interrupt_request;
        int interrupt_vector;
        int fault_vector;
@@ -158,7 +157,6 @@ typedef struct CPUCRISState {
        int features;
        int user_mode_only;
 
-       jmp_buf jmp_env;
        CPU_COMMON
 } CPUCRISState;
 
index 2012debef7653eaf8975fd90c25f7454de70836a..eb0052786cee3d6360453afdbc11051d66bddfdc 100644 (file)
@@ -552,8 +552,6 @@ typedef struct CPUX86State {
     uint64_t pat;
 
     /* exception/interrupt handling */
-    jmp_buf jmp_env;
-    int exception_index;
     int error_code;
     int exception_is_int;
     target_ulong exception_next_eip;
index 34651e3e895f3ee0edd56c340dd15a5376c60b42..d5c5a10556fd95614f296b09489285a56cc8a594 100644 (file)
@@ -104,8 +104,6 @@ typedef struct CPUM68KState {
     uint32_t t1;
 
     /* exception/interrupt handling */
-    jmp_buf jmp_env;
-    int exception_index;
     int interrupt_request;
     int user_mode_only;
 
index cb12b3c28bbd1ba490e6f057e4c7261f325e6947..9295b531d6faaf093aefc9761b112545ea389a33 100644 (file)
@@ -412,8 +412,6 @@ struct CPUMIPSState {
     int32_t CP0_DESAVE;
     /* Qemu */
     int interrupt_request;
-    jmp_buf jmp_env;
-    int exception_index;
     int error_code;
     int user_mode_only; /* user mode only simulation */
     uint32_t hflags;    /* CPU State */
index 3eea6952925554ca8680d9175071f050e3498645..a884fd63335b4b30eb0a81e312546404092982af 100644 (file)
@@ -646,7 +646,6 @@ struct CPUPPCState {
     int bfd_mach;
     uint32_t flags;
 
-    int exception_index;
     int error_code;
     int interrupt_request;
     uint32_t pending_interrupts;
@@ -672,7 +671,6 @@ struct CPUPPCState {
     opc_handler_t *opcodes[0x40];
 
     /* Those resources are used only in Qemu core */
-    jmp_buf jmp_env;
     int user_mode_only; /* user mode only simulation */
     target_ulong hflags;      /* hflags is a MSR & HFLAGS_MASK         */
     target_ulong hflags_nmsr; /* specific hflags, not comming from MSR */
index 812db938cd84921ba1d4b6db6edc56314a5bb530..c03cdb188cce7de739ac99f863ac351f4f79599e 100644 (file)
@@ -114,10 +114,8 @@ typedef struct CPUSH4State {
     uint32_t expevt;           /* exception event register */
     uint32_t intevt;           /* interrupt event register */
 
-    jmp_buf jmp_env;
     int user_mode_only;
     int interrupt_request;
-    int exception_index;
      CPU_COMMON tlb_t utlb[UTLB_SIZE]; /* unified translation table */
     tlb_t itlb[ITLB_SIZE];     /* instruction translation table */
     void *intc_handle;
index f00192e8c3faebce00baa97114373703708cee7b..ba3ee01b0814e802eedb56259f25f0679d02b68a 100644 (file)
@@ -214,9 +214,7 @@ typedef struct CPUSPARCState {
     uint32_t pil_in;   /* incoming interrupt level bitmap */
     int      psref;    /* enable fpu */
     target_ulong version;
-    jmp_buf  jmp_env;
     int user_mode_only;
-    int exception_index;
     int interrupt_index;
     int interrupt_request;
     uint32_t mmu_bm;