mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -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
|
@ -24,8 +24,6 @@
|
|||
#include "exec/cpu-defs.h"
|
||||
#include "qom/cpu.h"
|
||||
|
||||
#define CPUArchState struct CPUOpenRISCState
|
||||
|
||||
/* cpu_openrisc_map_address_* in CPUOpenRISCTLBContext need this decl. */
|
||||
struct OpenRISCCPU;
|
||||
|
||||
|
@ -365,6 +363,8 @@ void cpu_openrisc_count_stop(OpenRISCCPU *cpu);
|
|||
#define OPENRISC_CPU_TYPE_NAME(model) model OPENRISC_CPU_TYPE_SUFFIX
|
||||
#define CPU_RESOLVING_TYPE TYPE_OPENRISC_CPU
|
||||
|
||||
typedef CPUOpenRISCState CPUArchState;
|
||||
|
||||
#include "exec/cpu-all.h"
|
||||
|
||||
#define TB_FLAGS_SM SR_SM
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue