Skip to contentSkip to conversation

bsd-user: fix compile failure

PATCH Superseded Peter Maydell 2 participants 2 messages Apr 12, 2012

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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 which added a use of RESERVED_VA to h2g_valid().

---
 bsd-user/main.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
bsd-user/main.c +1 -0
index 48cb715..0689e38 100644
@@ -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;
Signature · 1 line
1.7.1
#1 lore raw

Am 12.04.2012 12:22, schrieb Peter Maydell:

Quoted 5 lines

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

Did you forget to paste the commit hash here? Otherwise a "the" seems missing.

Quoted 2 lines

which added a use of RESERVED_VA to h2g_valid().

from what I remember.

Quoted 10 lines
---
 bsd-user/main.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
bsd-user/main.c +0 -0
index 48cb715..0689e38 100644

bsd-user/main.c int singlestep; · line 47

Quoted 7 lines
bsd-user/main.c +1 -0
@@ -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;

Looks okay to me but don't have BSD setup to test.

Andreas

Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg