aboutsummaryrefslogtreecommitdiff
path: root/target/i386/hvf/x86.h
diff options
context:
space:
mode:
authorRoman Bolshakov <r.bolshakov@yadro.com>2020-05-28 22:37:51 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2020-06-12 11:15:02 -0400
commit5d32173fc30e5b08e196f7ffd993ddc8335a203e (patch)
treea8f81a80b2db4ca96dd5644400bcbaa78045d0d1 /target/i386/hvf/x86.h
parent81ae3d0216587bf868486244f038072e07ee4e9d (diff)
downloadqemu-5d32173fc30e5b08e196f7ffd993ddc8335a203e.zip
qemu-5d32173fc30e5b08e196f7ffd993ddc8335a203e.tar.gz
qemu-5d32173fc30e5b08e196f7ffd993ddc8335a203e.tar.bz2
i386: hvf: Use IP from CPUX86State
Drop and replace rip field from HVFX86EmulatorState in favor of eip from common CPUX86State. Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com> Message-Id: <20200528193758.51454-7-r.bolshakov@yadro.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'target/i386/hvf/x86.h')
-rw-r--r--target/i386/hvf/x86.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/target/i386/hvf/x86.h b/target/i386/hvf/x86.h
index 56fcde1..e3ab7c5 100644
--- a/target/i386/hvf/x86.h
+++ b/target/i386/hvf/x86.h
@@ -294,7 +294,6 @@ typedef struct lazy_flags {
/* Definition of hvf_x86_state is here */
struct HVFX86EmulatorState {
uint64_t fetch_rip;
- uint64_t rip;
struct x86_register regs[16];
struct x86_reg_flags rflags;
struct lazy_flags lflags;
@@ -302,8 +301,6 @@ struct HVFX86EmulatorState {
};
/* useful register access macros */
-#define RIP(cpu) (cpu->hvf_emul->rip)
-#define EIP(cpu) ((uint32_t)cpu->hvf_emul->rip)
#define RFLAGS(cpu) (cpu->hvf_emul->rflags.rflags)
#define EFLAGS(cpu) (cpu->hvf_emul->rflags.eflags)