]> git.proxmox.com Git - mirror_qemu.git/commitdiff
cpu: Remove CPU_COMMON
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 23 Mar 2019 18:35:53 +0000 (11:35 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 10 Jun 2019 14:03:42 +0000 (07:03 -0700)
This macro is now always empty, so remove it.  This leaves the
entire contents of CPUArchState under the control of the guest
architecture.

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
22 files changed:
include/exec/cpu-defs.h
target/alpha/cpu.h
target/arm/cpu.h
target/cris/cpu.h
target/hppa/cpu.h
target/i386/cpu.h
target/lm32/cpu.h
target/m68k/cpu.h
target/microblaze/cpu.h
target/mips/cpu.h
target/moxie/cpu.h
target/nios2/cpu.h
target/openrisc/cpu.h
target/ppc/cpu.h
target/riscv/cpu.h
target/s390x/cpu.h
target/sh4/cpu.h
target/sparc/cpu.h
target/tilegx/cpu.h
target/tricore/cpu.h
target/unicore32/cpu.h
target/xtensa/cpu.h

index 006f8db9cfac674da856942408abe5b5f44b9786..9bc713a70b2968d1eacb5cd526913e309edc8419 100644 (file)
@@ -231,8 +231,6 @@ typedef struct CPUTLB { } CPUTLB;
 
 #endif  /* !CONFIG_USER_ONLY && CONFIG_TCG */
 
-#define CPU_COMMON  /* Nothing */
-
 /*
  * This structure must be placed in ArchCPU immedately
  * before CPUArchState, as a field named "neg".
index 94fbc00a3bc3e1a57efceef5116c38d8bd755698..5d6fb222b5db073172d1c24ee795ba34d76cf52e 100644 (file)
@@ -251,9 +251,6 @@ struct CPUAlphaState {
     /* This alarm doesn't exist in real hardware; we wish it did.  */
     uint64_t alarm_expire;
 
-    /* Those resources are used only in QEMU core */
-    CPU_COMMON
-
     int error_code;
 
     uint32_t features;
index 5965c52f0c3268843df58f3e8b31af8b9e40222a..8fa9772c9dae23b36a150f144683a0b9dc70d485 100644 (file)
@@ -645,9 +645,7 @@ typedef struct CPUARMState {
     /* Fields up to this point are cleared by a CPU reset */
     struct {} end_reset_fields;
 
-    CPU_COMMON
-
-    /* Fields after CPU_COMMON are preserved across CPU reset. */
+    /* Fields after this point are preserved across CPU reset. */
 
     /* Internal CPU feature flags.  */
     uint64_t features;
index ad93d1a9ee4752df0c37c68e7f20eee62b479c52..9d2a80d995b120fba9d0196c5b7dd1332b449c2a 100644 (file)
@@ -163,8 +163,6 @@ typedef struct CPUCRISState {
         /* Fields up to this point are cleared by a CPU reset */
         struct {} end_reset_fields;
 
-        CPU_COMMON
-
         /* Members from load_info on are preserved across resets.  */
         void *load_info;
 } CPUCRISState;
index f7c6205218755ffc4da6ee17aacb2a36fe40c27b..c7db2eca9ae580995eaf3d61de10c194af635f8d 100644 (file)
@@ -197,9 +197,6 @@ struct CPUHPPAState {
     target_ureg cr_back[2];  /* back of cr17/cr18 */
     target_ureg shadow[7];   /* shadow registers */
 
-    /* Those resources are used only in QEMU core */
-    CPU_COMMON
-
     /* ??? The number of entries isn't specified by the architecture.  */
     /* ??? Implement a unified itlb/dtlb for the moment.  */
     /* ??? We should use a more intelligent data structure.  */
index e7580a86e5d28d958aa08acfcd76094fb367c602..edad6e1efb7fe6ac5c3c5b343c27e425b56e829b 100644 (file)
@@ -1289,9 +1289,7 @@ typedef struct CPUX86State {
     /* Fields up to this point are cleared by a CPU reset */
     struct {} end_reset_fields;
 
-    CPU_COMMON
-
-    /* Fields after CPU_COMMON are preserved across CPU reset. */
+    /* Fields after this point are preserved across CPU reset. */
 
     /* processor features (e.g. for CPUID insn) */
     /* Minimum level/xlevel/xlevel2, based on CPU model + features */
index 324bc90f81f43731130f5ac0bb6798a2b25385af..3e10a693a369783872fa8b3f938fea5418e3880f 100644 (file)
@@ -159,8 +159,6 @@ struct CPULM32State {
     /* Fields up to this point are cleared by a CPU reset */
     struct {} end_reset_fields;
 
-    CPU_COMMON
-
     /* Fields from here on are preserved across CPU reset. */
     uint32_t eba;       /* exception base address */
     uint32_t deba;      /* debug exception base address */
index d92263b7506204a94e45b7e51106061920ee4066..1ebd360afb34c259d8f454fe4f7fef06eb602379 100644 (file)
@@ -143,8 +143,6 @@ typedef struct CPUM68KState {
     /* Fields up to this point are cleared by a CPU reset */
     struct {} end_reset_fields;
 
-    CPU_COMMON
-
     /* Fields from here on are preserved across CPU reset. */
     uint32_t features;
 } CPUM68KState;
index d90c4fbcb50b57fd449c721dbcce7fd04dc5c83e..98b4d915d720706e5b6d7efcc5ce98f73af87bdd 100644 (file)
@@ -266,8 +266,6 @@ struct CPUMBState {
     /* Fields up to this point are cleared by a CPU reset */
     struct {} end_reset_fields;
 
-    CPU_COMMON
-
     /* These fields are preserved on reset.  */
 
     struct {
index 62af24937d5ed94d39658a0136a7caaa84664d5e..bbf1aa8b0d3f7a4391b824770d195867b6550fd1 100644 (file)
@@ -1041,8 +1041,6 @@ struct CPUMIPSState {
     /* Fields up to this point are cleared by a CPU reset */
     struct {} end_reset_fields;
 
-    CPU_COMMON
-
     /* Fields from here on are preserved across CPU reset. */
     CPUMIPSMVPContext *mvp;
 #if !defined(CONFIG_USER_ONLY)
index c6b681531d00327d6042d3c4ada59030eb4e25b7..2b596d5d45b80177a49ced124a535325c92e7398 100644 (file)
@@ -45,9 +45,6 @@ typedef struct CPUMoxieState {
 
     /* Fields up to this point are cleared by a CPU reset */
     struct {} end_reset_fields;
-
-    CPU_COMMON
-
 } CPUMoxieState;
 
 #include "qom/cpu.h"
index 8cc3d4971e5ed84245d0e6bace50261bb83115fc..e40ee27e5392dea4b15f7b849b42577b31fad19c 100644 (file)
@@ -167,8 +167,6 @@ struct CPUNios2State {
 
     uint32_t irq_pending;
 #endif
-
-    CPU_COMMON
 };
 
 /**
index 51723e9312e6f96e12909296ea60eb9322c3af55..9b80834d68907fc5e786190cabf7d9783b560040 100644 (file)
@@ -286,8 +286,6 @@ typedef struct CPUOpenRISCState {
     /* Fields up to this point are cleared by a CPU reset */
     struct {} end_reset_fields;
 
-    CPU_COMMON
-
     /* Fields from here on are preserved across CPU reset. */
     uint32_t cpucfgr;         /* CPU configure register */
 
index e8962e4655f5a11927cb3aae072bab16d98fd661..c93ebc4c1024c5fd703aeaf7444f5e1885a55b6b 100644 (file)
@@ -999,8 +999,6 @@ struct CPUPPCState {
     /* when a memory exception occurs, the access type is stored here */
     int access_type;
 
-    CPU_COMMON
-
     /* MMU context - only relevant for full system emulation */
 #if !defined(CONFIG_USER_ONLY)
 #if defined(TARGET_PPC64)
index 0ed7031915201601614a8cb563ba4aeac2fc450f..a935b17dbddf03480101ee635b74100628147d41 100644 (file)
@@ -171,9 +171,6 @@ struct CPURISCVState {
 
     float_status fp_status;
 
-    /* QEMU */
-    CPU_COMMON
-
     /* Fields from here on are preserved across CPU reset. */
     QEMUTimer *timer; /* Internal timer */
 };
index 21688b7c8ce2a633ec5258ab5bdecd3e4b434630..cb103bc3e7a5c0a6f939e3ffec3e110732304942 100644 (file)
@@ -114,8 +114,6 @@ struct CPUS390XState {
     /* Fields up to this point are cleared by a CPU reset */
     struct {} end_reset_fields;
 
-    CPU_COMMON
-
 #if !defined(CONFIG_USER_ONLY)
     uint32_t core_id; /* PoP "CPU address", same as cpu_index */
     uint64_t cpuid;
index e266db411f7f6c17130e737e64dfe40e1217fd14..08cf275f79b28f8d50bb649c2bb885ed32465da8 100644 (file)
@@ -179,8 +179,6 @@ typedef struct CPUSH4State {
     /* Fields up to this point are cleared by a CPU reset */
     struct {} end_reset_fields;
 
-    CPU_COMMON
-
     /* Fields from here on are preserved over CPU reset. */
     int id;                    /* CPU model */
 
index a3c4f47d40ca9eb8e902b36e78cba0635b850c6f..49e0349a81b36c6d5fbd583c11df4652f9077a57 100644 (file)
@@ -446,8 +446,6 @@ struct CPUSPARCState {
     /* Fields up to this point are cleared by a CPU reset */
     struct {} end_reset_fields;
 
-    CPU_COMMON
-
     /* Fields from here on are preserved across CPU reset. */
     target_ulong version;
     uint32_t nwindows;
index deb3e836ea41dda7b1095defcb2714bf9b2afbcc..c2acb43c2bfccb6507f674dfabb2221f4931a628 100644 (file)
@@ -93,8 +93,6 @@ typedef struct CPUTLGState {
 
     /* Fields up to this point are cleared by a CPU reset */
     struct {} end_reset_fields;
-
-    CPU_COMMON
 } CPUTLGState;
 
 #include "qom/cpu.h"
index 03b293c1f69dc398cd52c0a3b0aafaeb70c6018b..52b07c73bf82c9f6fde24bba6f6fccd758a273cb 100644 (file)
@@ -184,8 +184,6 @@ struct CPUTriCoreState {
     int error_code;
     uint32_t hflags;    /* CPU State */
 
-    CPU_COMMON
-
     /* Internal CPU feature flags.  */
     uint64_t features;
 
index 39beb3236688e0af9790a309308fead06c029475..6b459dacdeacd4befcd8d60ffdb9eb149443a3ae 100644 (file)
@@ -55,8 +55,6 @@ typedef struct CPUUniCore32State {
         float_status fp_status;
     } ucf64;
 
-    CPU_COMMON
-
     /* Internal CPU feature flags.  */
     uint32_t features;
 
index e2d7e8371d3d5d245e78d84397b2dfc340c6edc8..bfc6604b76ebca697a883ca0c973f23730fcad53 100644 (file)
@@ -541,8 +541,6 @@ typedef struct CPUXtensaState {
 
     /* Watchpoints for DBREAK registers */
     struct CPUWatchpoint *cpu_watchpoint[MAX_NDBREAK];
-
-    CPU_COMMON
 } CPUXtensaState;
 
 /**