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:
Richard Henderson 2019-03-22 15:32:23 -07:00
parent a40ec84ee2
commit 4f7c64b381
21 changed files with 43 additions and 53 deletions

View file

@ -14,8 +14,6 @@
#define TARGET_DPREGS 32
#endif
#define CPUArchState struct CPUSPARCState
/*#define EXCP_INTERRUPT 0x100*/
/* trap definitions */
@ -731,6 +729,8 @@ static inline int cpu_pil_allowed(CPUSPARCState *env1, int pil)
#endif
}
typedef CPUSPARCState CPUArchState;
#include "exec/cpu-all.h"
#ifdef TARGET_SPARC64