summaryrefslogtreecommitdiff
path: root/bsd-user
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2012-04-12 12:43:41 +0100
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2012-04-13 09:57:36 +0100
commitd6ef40bf1881ddc82c8d64e72d412090efe1190e (patch)
tree6995a65c7fe2477ec0a3fae8cdf5f158dbaa0c3d /bsd-user
parentfd65f595fe14dafeee1cd34df0dbe288ed6a5f06 (diff)
downloadqemu-d6ef40bf1881ddc82c8d64e72d412090efe1190e.tar.gz
qemu-d6ef40bf1881ddc82c8d64e72d412090efe1190e.tar.bz2
qemu-d6ef40bf1881ddc82c8d64e72d412090efe1190e.zip
bsd-user: fix compile failure
bsd-user doesn't actually support reserving a memory area for the guest address space, but we need to at least define the reserved_va global so that cpu-all.h's RESERVED_VA macro will work correctly. This fixes a compilation error introduced in commit 39879bb which added a use of RESERVED_VA to h2g_valid(). Reported-by: Brad Smith <brad@comstyle.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'bsd-user')
-rw-r--r--bsd-user/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bsd-user/main.c b/bsd-user/main.c
index 48cb715d2d..0689e38fb8 100644
--- a/bsd-user/main.c
+++ b/bsd-user/main.c
@@ -41,6 +41,7 @@ int singlestep;
unsigned long mmap_min_addr;
unsigned long guest_base;
int have_guest_base;
+unsigned long reserved_va;
#endif
static const char *interp_prefix = CONFIG_QEMU_INTERP_PREFIX;