mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
target/i386: Use env_cpu, env_archcpu
Cleanup in the boilerplate that each target must define. Replace x86_env_get_cpu with env_archcpu. The combination CPU(x86_env_get_cpu) should have used ENV_GET_CPU to begin; use env_cpu now. Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
25f327081b
commit
6aa9e42f27
16 changed files with 58 additions and 70 deletions
|
@ -152,7 +152,7 @@ static void update_guest_rom_state(VAPICROMState *s)
|
|||
|
||||
static int find_real_tpr_addr(VAPICROMState *s, CPUX86State *env)
|
||||
{
|
||||
CPUState *cs = CPU(x86_env_get_cpu(env));
|
||||
CPUState *cs = env_cpu(env);
|
||||
hwaddr paddr;
|
||||
target_ulong addr;
|
||||
|
||||
|
@ -279,7 +279,7 @@ instruction_ok:
|
|||
|
||||
static int update_rom_mapping(VAPICROMState *s, CPUX86State *env, target_ulong ip)
|
||||
{
|
||||
CPUState *cs = CPU(x86_env_get_cpu(env));
|
||||
CPUState *cs = env_cpu(env);
|
||||
hwaddr paddr;
|
||||
uint32_t rom_state_vaddr;
|
||||
uint32_t pos, patch, offset;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue