aboutsummaryrefslogtreecommitdiff
path: root/target/i386/hvf/x86.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2017-10-03 15:17:37 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2017-12-22 15:02:07 +0100
commitff2de1668c9e5dfa7d4305451058234a029aa6ad (patch)
treeeb358d42f9e58d9efdc706145989834cc47332ce /target/i386/hvf/x86.h
parente8a632579dbf327679c6d2e47ca4285d6e97ec2c (diff)
downloadqemu-ff2de1668c9e5dfa7d4305451058234a029aa6ad.zip
qemu-ff2de1668c9e5dfa7d4305451058234a029aa6ad.tar.gz
qemu-ff2de1668c9e5dfa7d4305451058234a029aa6ad.tar.bz2
i386: hvf: remove addr_t
Use target_ulong for virtual addresses and uint64_t for physical addresses. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/i386/hvf/x86.h')
-rw-r--r--target/i386/hvf/x86.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/target/i386/hvf/x86.h b/target/i386/hvf/x86.h
index cfcb9c9..ae877f0 100644
--- a/target/i386/hvf/x86.h
+++ b/target/i386/hvf/x86.h
@@ -289,8 +289,8 @@ typedef struct x68_segment_selector {
} __attribute__ ((__packed__)) x68_segment_selector;
typedef struct lazy_flags {
- addr_t result;
- addr_t auxbits;
+ target_ulong result;
+ target_ulong auxbits;
} lazy_flags;
/* Definition of hvf_x86_state is here */
@@ -381,10 +381,10 @@ bool x86_is_paging_mode(struct CPUState *cpu);
bool x86_is_pae_enabled(struct CPUState *cpu);
enum X86Seg;
-addr_t linear_addr(struct CPUState *cpu, addr_t addr, enum X86Seg seg);
-addr_t linear_addr_size(struct CPUState *cpu, addr_t addr, int size,
- enum X86Seg seg);
-addr_t linear_rip(struct CPUState *cpu, addr_t rip);
+target_ulong linear_addr(struct CPUState *cpu, target_ulong addr, enum X86Seg seg);
+target_ulong linear_addr_size(struct CPUState *cpu, target_ulong addr, int size,
+ enum X86Seg seg);
+target_ulong linear_rip(struct CPUState *cpu, target_ulong rip);
static inline uint64_t rdtscp(void)
{