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-sparc/cpu.h | |
parent | 0aef4261ac0ec9089ade0e3a92f986cb4ba7317e (diff) | |
download | hqemu-5270589032f450ae7c3448730855aa18ff68ccff.zip hqemu-5270589032f450ae7c3448730855aa18ff68ccff.tar.gz |
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-sparc/cpu.h')
-rw-r--r-- | target-sparc/cpu.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h index 5980deb..0c5a7ef 100644 --- a/target-sparc/cpu.h +++ b/target-sparc/cpu.h @@ -7,10 +7,18 @@ #define TARGET_LONG_BITS 32 #define TARGET_FPREGS 32 #define TARGET_PAGE_BITS 12 /* 4k */ +#define TARGET_PHYS_ADDR_SPACE_BITS 41 +# ifdef TARGET_ABI32 +# define TARGET_VIRT_ADDR_SPACE_BITS 32 +# else +# define TARGET_VIRT_ADDR_SPACE_BITS 44 +# endif #else #define TARGET_LONG_BITS 64 #define TARGET_FPREGS 64 #define TARGET_PAGE_BITS 13 /* 8k */ +#define TARGET_PHYS_ADDR_SPACE_BITS 36 +#define TARGET_VIRT_ADDR_SPACE_BITS 32 #endif #define CPUState struct CPUSPARCState |