mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
target: Use CPUArchState as interface to target-specific CPU state
While CPUState is our interface with generic code, CPUArchState is our interface with target-specific code. Use CPUArchState as an abstract type, defined by each target. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20220214183144.27402-13-f4bug@amsat.org>
This commit is contained in:
parent
3686119875
commit
1ea4a06af0
26 changed files with 37 additions and 70 deletions
|
@ -420,7 +420,7 @@ struct CPUTimer
|
|||
|
||||
typedef struct CPUTimer CPUTimer;
|
||||
|
||||
typedef struct CPUSPARCState CPUSPARCState;
|
||||
typedef struct CPUArchState CPUSPARCState;
|
||||
#if defined(TARGET_SPARC64)
|
||||
typedef union {
|
||||
uint64_t mmuregs[16];
|
||||
|
@ -439,7 +439,7 @@ typedef union {
|
|||
};
|
||||
} SparcV9MMU;
|
||||
#endif
|
||||
struct CPUSPARCState {
|
||||
struct CPUArchState {
|
||||
target_ulong gregs[8]; /* general registers */
|
||||
target_ulong *regwptr; /* pointer to current register window */
|
||||
target_ulong pc; /* program counter */
|
||||
|
@ -743,7 +743,6 @@ static inline int cpu_pil_allowed(CPUSPARCState *env1, int pil)
|
|||
#endif
|
||||
}
|
||||
|
||||
typedef CPUSPARCState CPUArchState;
|
||||
typedef SPARCCPU ArchCPU;
|
||||
|
||||
#include "exec/cpu-all.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue