diff options
author | Richard Henderson <rth@twiddle.net> | 2010-03-10 14:33:23 -0800 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2010-03-12 16:28:24 +0000 |
commit | 5270589032f450ae7c3448730855aa18ff68ccff (patch) | |
tree | b918b07e410db7876c774d5f8c063dae4178497c /target-s390x | |
parent | 0aef4261ac0ec9089ade0e3a92f986cb4ba7317e (diff) |
Move TARGET_PHYS_ADDR_SPACE_BITS to target-*/cpu.h.
Removes a set of ifdefs from exec.c.
Introduce TARGET_VIRT_ADDR_SPACE_BITS for all targets other
than Alpha. This will be used for page_find_alloc, which is
supposed to be using virtual addresses in the first place.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-s390x')
-rw-r--r-- | target-s390x/cpu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target-s390x/cpu.h b/target-s390x/cpu.h index 827f4e33dc..dd407b2424 100644 --- a/target-s390x/cpu.h +++ b/target-s390x/cpu.h @@ -99,6 +99,11 @@ int cpu_s390x_handle_mmu_fault (CPUS390XState *env, target_ulong address, int rw #define TARGET_PAGE_BITS 12 +/* ??? This is certainly wrong for 64-bit s390x, but given that only KVM + emulation actually works, this is good enough for a placeholder. */ +#define TARGET_PHYS_ADDR_SPACE_BITS 32 +#define TARGET_VIRT_ADDR_SPACE_BITS 32 + #ifndef CONFIG_USER_ONLY extern int s390_virtio_hypercall(CPUState *env); extern void kvm_s390_virtio_irq(CPUState *env, int config_change, uint64_t token); |