]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
targphys.h: Don't define target_phys_addr_t for user-mode emulators
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 12 Oct 2012 17:59:44 +0000 (18:59 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 19 Oct 2012 08:31:51 +0000 (10:31 +0200)
Commit 4be403c accidentally defined the target_phys_addr_t type when
building user-mode emulators. Since the type doesn't really make
any sense except for system emulators, avoid defining it when building
in user mode.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Acked-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
targphys.h

index 08cade90962cb7e0e62f0dc182931e197f5bbed1..50911fd12fe08dee87a02a9af648e68a97a64ce9 100644 (file)
@@ -3,6 +3,8 @@
 #ifndef TARGPHYS_H
 #define TARGPHYS_H
 
+#ifndef CONFIG_USER_ONLY
+
 #define TARGET_PHYS_ADDR_BITS 64
 /* target_phys_addr_t is the type of a physical address (its size can
    be different from 'target_ulong').  */
@@ -18,3 +20,5 @@ typedef uint64_t target_phys_addr_t;
 #define TARGET_PRIXPHYS PRIX64
 
 #endif
+
+#endif