diff options
author | Philippe Mathieu-Daudé | 2022-02-07 13:35:58 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé | 2022-03-06 22:23:09 +0100 |
commit | 1ea4a06af0f6578e5d0ddcea148503290b1c4907 (patch) | |
tree | 060b35cfbdf984ec058efb07d1815283b1058dd0 /target/hppa | |
parent | target: Use forward declared type instead of structure type (diff) | |
download | qemu-1ea4a06af0f6578e5d0ddcea148503290b1c4907.tar.gz qemu-1ea4a06af0f6578e5d0ddcea148503290b1c4907.tar.xz qemu-1ea4a06af0f6578e5d0ddcea148503290b1c4907.zip |
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>
Diffstat (limited to 'target/hppa')
-rw-r--r-- | target/hppa/cpu.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/target/hppa/cpu.h b/target/hppa/cpu.h index 93c119532a..d36e5c170c 100644 --- a/target/hppa/cpu.h +++ b/target/hppa/cpu.h @@ -138,8 +138,6 @@ #define CR_IPSW 22 #define CR_EIRR 23 -typedef struct CPUHPPAState CPUHPPAState; - #if TARGET_REGISTER_BITS == 32 typedef uint32_t target_ureg; typedef int32_t target_sreg; @@ -168,7 +166,7 @@ typedef struct { unsigned access_id : 16; } hppa_tlb_entry; -struct CPUHPPAState { +typedef struct CPUArchState { target_ureg gr[32]; uint64_t fr[32]; uint64_t sr[8]; /* stored shifted into place for gva */ @@ -207,7 +205,7 @@ struct CPUHPPAState { /* ??? We should use a more intelligent data structure. */ hppa_tlb_entry tlb[HPPA_TLB_ENTRIES]; uint32_t tlb_last; -}; +} CPUHPPAState; /** * HPPACPU: @@ -225,8 +223,6 @@ struct HPPACPU { QEMUTimer *alarm_timer; }; - -typedef CPUHPPAState CPUArchState; typedef HPPACPU ArchCPU; #include "exec/cpu-all.h" |