mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
cpu: Define CPUArchState with typedef
For all targets, do this just before including exec/cpu-all.h. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Acked-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
a40ec84ee2
commit
4f7c64b381
21 changed files with 43 additions and 53 deletions
|
@ -31,8 +31,6 @@
|
|||
basis. It's probably easier to fall back to a strong memory model. */
|
||||
#define TCG_GUEST_DEFAULT_MO TCG_MO_ALL
|
||||
|
||||
#define CPUArchState struct CPUHPPAState
|
||||
|
||||
#define ALIGNED_ONLY
|
||||
#define MMU_KERNEL_IDX 0
|
||||
#define MMU_USER_IDX 3
|
||||
|
@ -232,6 +230,8 @@ static inline HPPACPU *hppa_env_get_cpu(CPUHPPAState *env)
|
|||
#define ENV_GET_CPU(e) CPU(hppa_env_get_cpu(e))
|
||||
#define ENV_OFFSET offsetof(HPPACPU, env)
|
||||
|
||||
typedef CPUHPPAState CPUArchState;
|
||||
|
||||
#include "exec/cpu-all.h"
|
||||
|
||||
static inline int cpu_mmu_index(CPUHPPAState *env, bool ifetch)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue