diff options
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 */ |