From 5270589032f450ae7c3448730855aa18ff68ccff Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 10 Mar 2010 14:33:23 -0800 Subject: 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 --- target-mips/mips-defs.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'target-mips') diff --git a/target-mips/mips-defs.h b/target-mips/mips-defs.h index 54e80f1..0f6a956 100644 --- a/target-mips/mips-defs.h +++ b/target-mips/mips-defs.h @@ -8,6 +8,10 @@ #define TARGET_PAGE_BITS 12 #define MIPS_TLB_MAX 128 +/* ??? MIPS64 no doubt has a larger address space. */ +#define TARGET_PHYS_ADDR_SPACE_BITS 32 +#define TARGET_VIRT_ADDR_SPACE_BITS 32 + #if defined(TARGET_MIPS64) #define TARGET_LONG_BITS 64 #else -- cgit v1.1