mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
target-i386: Clean up ENV_GET_CPU() usage
Commitsfdfba1a298
,f606604f1c
and2c17449b30
added usages of ENV_GET_CPU() macro in target-specific code. Use x86_env_get_cpu() or reuse existing X86CPU variable instead. Cc: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Cc: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
70d74660e7
commit
19d6ca16d9
4 changed files with 12 additions and 10 deletions
|
@ -181,8 +181,8 @@ void do_smm_enter(X86CPU *cpu)
|
|||
|
||||
void helper_rsm(CPUX86State *env)
|
||||
{
|
||||
CPUState *cs = ENV_GET_CPU(env);
|
||||
X86CPU *cpu = x86_env_get_cpu(env);
|
||||
CPUState *cs = CPU(cpu);
|
||||
target_ulong sm_state;
|
||||
int i, offset;
|
||||
uint32_t val;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue