summaryrefslogtreecommitdiffstats
path: root/target-cris
authorRichard Henderson <[email protected]>2010-03-10 22:33:23 (GMT)
committer Paul Brook <[email protected]>2010-03-12 16:28:24 (GMT)
commit5270589032f450ae7c3448730855aa18ff68ccff (patch) (side-by-side diff)
treeb918b07e410db7876c774d5f8c063dae4178497c /target-cris
parent0aef4261ac0ec9089ade0e3a92f986cb4ba7317e (diff)
downloadqemu-kvm-5270589032f450ae7c3448730855aa18ff68ccff.zip
qemu-kvm-5270589032f450ae7c3448730855aa18ff68ccff.tar.gz
qemu-kvm-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 <[email protected]>
Diffstat (limited to 'target-cris') (more/less context) (ignore whitespace changes)
-rw-r--r--target-cris/cpu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/target-cris/cpu.h b/target-cris/cpu.h
index 8ff86d9..063a240 100644
--- a/target-cris/cpu.h
+++ b/target-cris/cpu.h
@@ -200,6 +200,9 @@ enum {
#define TARGET_PAGE_BITS 13
#define MMAP_SHIFT TARGET_PAGE_BITS
+#define TARGET_PHYS_ADDR_SPACE_BITS 32
+#define TARGET_VIRT_ADDR_SPACE_BITS 32
+
#define cpu_init cpu_cris_init
#define cpu_exec cpu_cris_exec
#define cpu_gen_code cpu_cris_gen_code