diff options
author | Paul Brook <paul@codesourcery.com> | 2010-03-12 16:54:58 +0000 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2010-03-12 18:34:25 +0000 |
commit | b3755a915e40271e8d2b1119e8a1dc1f3e88d2e5 (patch) | |
tree | 9ca60af42732d0df7c5b81a7ca6ced26ea8d4494 /cpu-common.h | |
parent | 20cb400d41b07f33ed34d5ed917e534c7f12738b (diff) |
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 'cpu-common.h')
-rw-r--r-- | cpu-common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpu-common.h b/cpu-common.h index 0ec9b72a91..f53690ac8c 100644 --- a/cpu-common.h +++ b/cpu-common.h @@ -10,6 +10,8 @@ #include "bswap.h" #include "qemu-queue.h" +#if !defined(CONFIG_USER_ONLY) + /* address in the RAM (different from a physical address) */ typedef unsigned long ram_addr_t; @@ -106,4 +108,6 @@ void cpu_physical_memory_write_rom(target_phys_addr_t addr, #define IO_MEM_SUBPAGE (2) #define IO_MEM_SUBWIDTH (4) +#endif + #endif /* !CPU_COMMON_H */ |