mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
i386: hvf: Drop fetch_rip from HVFX86EmulatorState
The field is used to print address of instructions that have no parser in decode_invalid(). RIP from VMCS is saved into fetch_rip before decoding starts but it's also saved into env->eip in load_regs(). Therefore env->eip can be used instead of fetch_rip. While at it, correct address printed in decode_invalid(). It prints an address before the unknown instruction. Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com> Message-Id: <20200528193758.51454-8-r.bolshakov@yadro.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
5d32173fc3
commit
2d5f696cb7
3 changed files with 1 additions and 9 deletions
|
@ -767,8 +767,6 @@ int hvf_vcpu_exec(CPUState *cpu)
|
|||
struct x86_decode decode;
|
||||
|
||||
load_regs(cpu);
|
||||
env->hvf_emul->fetch_rip = rip;
|
||||
|
||||
decode_instruction(env, &decode);
|
||||
exec_instruction(env, &decode);
|
||||
store_regs(cpu);
|
||||
|
@ -809,8 +807,6 @@ int hvf_vcpu_exec(CPUState *cpu)
|
|||
struct x86_decode decode;
|
||||
|
||||
load_regs(cpu);
|
||||
env->hvf_emul->fetch_rip = rip;
|
||||
|
||||
decode_instruction(env, &decode);
|
||||
assert(ins_len == decode.len);
|
||||
exec_instruction(env, &decode);
|
||||
|
@ -915,8 +911,6 @@ int hvf_vcpu_exec(CPUState *cpu)
|
|||
struct x86_decode decode;
|
||||
|
||||
load_regs(cpu);
|
||||
env->hvf_emul->fetch_rip = rip;
|
||||
|
||||
decode_instruction(env, &decode);
|
||||
exec_instruction(env, &decode);
|
||||
store_regs(cpu);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue