aboutsummaryrefslogtreecommitdiff
path: root/exec-all.h
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2010-03-12 16:54:58 +0000
committerPaul Brook <paul@codesourcery.com>2010-03-12 18:34:25 +0000
commitb3755a915e40271e8d2b1119e8a1dc1f3e88d2e5 (patch)
tree9ca60af42732d0df7c5b81a7ca6ced26ea8d4494 /exec-all.h
parent20cb400d41b07f33ed34d5ed917e534c7f12738b (diff)
downloadqemu-b3755a915e40271e8d2b1119e8a1dc1f3e88d2e5.zip
qemu-b3755a915e40271e8d2b1119e8a1dc1f3e88d2e5.tar.gz
qemu-b3755a915e40271e8d2b1119e8a1dc1f3e88d2e5.tar.bz2
Disable phsyical memory handling in userspace emulation.
Code to handle physical memory access is not meaningful in usrmode emulation, so disable it. Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'exec-all.h')
-rw-r--r--exec-all.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/exec-all.h b/exec-all.h
index 04d2146..6c44d32 100644
--- a/exec-all.h
+++ b/exec-all.h
@@ -274,10 +274,6 @@ static inline void tb_add_jump(TranslationBlock *tb, int n,
TranslationBlock *tb_find_pc(unsigned long pc_ptr);
-extern CPUWriteMemoryFunc *io_mem_write[IO_MEM_NB_ENTRIES][4];
-extern CPUReadMemoryFunc *io_mem_read[IO_MEM_NB_ENTRIES][4];
-extern void *io_mem_opaque[IO_MEM_NB_ENTRIES];
-
#include "qemu-lock.h"
extern spinlock_t tb_lock;
@@ -286,6 +282,10 @@ extern int tb_invalidated_flag;
#if !defined(CONFIG_USER_ONLY)
+extern CPUWriteMemoryFunc *io_mem_write[IO_MEM_NB_ENTRIES][4];
+extern CPUReadMemoryFunc *io_mem_read[IO_MEM_NB_ENTRIES][4];
+extern void *io_mem_opaque[IO_MEM_NB_ENTRIES];
+
void tlb_fill(target_ulong addr, int is_write, int mmu_idx,
void *retaddr);