Skip to contentSkip to conversation

bsd-user: fix compile failure

PATCH Applied Peter Maydell 3 participants 3 messages Apr 12, 2012 – Apr 13, 2012

lore
Share & tools
lore
#0 lore raw

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

---
v1->v2 changes: added commit hash accidentally omitted from message added reported-by line. no code change.

 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
Reviewed-by on v2 1/1
#1 lore raw

Am 12.04.2012 13:43, schrieb Peter Maydell:

Quoted 21 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 39879bb which added a use of RESERVED_VA to h2g_valid().

---
v1->v2 changes: added commit hash accidentally omitted from message added reported-by line. no code change.

  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;

I'll send a patch which changes the data type to uintptr_t later with my w64 patches.

#2 lore raw
In reply to Peter Maydell
Quoted 7 lines · Peter Maydell

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().

Quoted 8 lines

---
v1->v2 changes: added commit hash accidentally omitted from message added reported-by line. no code change.

 bsd-user/main.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches

Stefan