aboutsummaryrefslogtreecommitdiff
path: root/target-sh4/cpu.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2010-03-10 14:33:23 -0800
committerPaul Brook <paul@codesourcery.com>2010-03-12 16:28:24 +0000
commit5270589032f450ae7c3448730855aa18ff68ccff (patch)
treeb918b07e410db7876c774d5f8c063dae4178497c /target-sh4/cpu.h
parent0aef4261ac0ec9089ade0e3a92f986cb4ba7317e (diff)
downloadqemu-5270589032f450ae7c3448730855aa18ff68ccff.zip
qemu-5270589032f450ae7c3448730855aa18ff68ccff.tar.gz
qemu-5270589032f450ae7c3448730855aa18ff68ccff.tar.bz2
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-sh4/cpu.h')
-rw-r--r--target-sh4/cpu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/target-sh4/cpu.h b/target-sh4/cpu.h
index 85f221d..18a5532 100644
--- a/target-sh4/cpu.h
+++ b/target-sh4/cpu.h
@@ -44,6 +44,9 @@
#define TARGET_PAGE_BITS 12 /* 4k XXXXX */
+#define TARGET_PHYS_ADDR_SPACE_BITS 32
+#define TARGET_VIRT_ADDR_SPACE_BITS 32
+
#define SR_MD (1 << 30)
#define SR_RB (1 << 29)
#define SR_BL (1 << 28)