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>
diff --git a/cpu-common.h b/cpu-common.h
index 0ec9b72..f53690a 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 @@
#define IO_MEM_SUBPAGE (2)
#define IO_MEM_SUBWIDTH (4)
+#endif
+
#endif /* !CPU_COMMON_H */