diff options
author | Roman Bolshakov <r.bolshakov@yadro.com> | 2020-05-28 22:37:52 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-06-12 11:15:02 -0400 |
commit | 2d5f696cb7b7a024f2a1bd4a8c6aed7a1d5532b4 (patch) | |
tree | cab473752c341d887a9218986c0c8aa761b40b07 /target/i386/hvf/x86.h | |
parent | 5d32173fc30e5b08e196f7ffd993ddc8335a203e (diff) | |
download | qemu-2d5f696cb7b7a024f2a1bd4a8c6aed7a1d5532b4.zip qemu-2d5f696cb7b7a024f2a1bd4a8c6aed7a1d5532b4.tar.gz qemu-2d5f696cb7b7a024f2a1bd4a8c6aed7a1d5532b4.tar.bz2 |
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>
Diffstat (limited to 'target/i386/hvf/x86.h')
-rw-r--r-- | target/i386/hvf/x86.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/target/i386/hvf/x86.h b/target/i386/hvf/x86.h index e3ab7c5..411e4b6 100644 --- a/target/i386/hvf/x86.h +++ b/target/i386/hvf/x86.h @@ -293,7 +293,6 @@ typedef struct lazy_flags { /* Definition of hvf_x86_state is here */ struct HVFX86EmulatorState { - uint64_t fetch_rip; struct x86_register regs[16]; struct x86_reg_flags rflags; struct lazy_flags lflags; |