* [Qemu-trivial] [PATCH v2] bsd-user: fix compile failure
@ 2012-04-12 11:43 Peter Maydell
2012-04-12 16:35 ` [Qemu-trivial] [Qemu-devel] " Stefan Weil
2012-04-13 8:57 ` Stefan Hajnoczi
0 siblings, 2 replies; 3+ messages in thread
From: Peter Maydell @ 2012-04-12 11:43 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu-trivial, Brad Smith, Andreas Färber, patches
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>
---
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(-)
diff --git a/bsd-user/main.c b/bsd-user/main.c
index 48cb715..0689e38 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;
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-trivial] [Qemu-devel] [PATCH v2] bsd-user: fix compile failure
2012-04-12 11:43 [Qemu-trivial] [PATCH v2] bsd-user: fix compile failure Peter Maydell
@ 2012-04-12 16:35 ` Stefan Weil
2012-04-13 8:57 ` Stefan Hajnoczi
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Weil @ 2012-04-12 16:35 UTC (permalink / raw)
To: Peter Maydell
Cc: qemu-trivial, patches, qemu-devel, Andreas Färber,
Brad Smith
Am 12.04.2012 13:43, schrieb 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().
>
> Reported-by: Brad Smith<brad@comstyle.com>
> Signed-off-by: Peter Maydell<peter.maydell@linaro.org>
> ---
> 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(-)
>
> diff --git a/bsd-user/main.c b/bsd-user/main.c
> index 48cb715..0689e38 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;
Reviewed-by: Stefan Weil <sw@weilnetz.de>
I'll send a patch which changes the data type to uintptr_t later
with my w64 patches.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-trivial] [Qemu-devel] [PATCH v2] bsd-user: fix compile failure
2012-04-12 11:43 [Qemu-trivial] [PATCH v2] bsd-user: fix compile failure Peter Maydell
2012-04-12 16:35 ` [Qemu-trivial] [Qemu-devel] " Stefan Weil
@ 2012-04-13 8:57 ` Stefan Hajnoczi
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2012-04-13 8:57 UTC (permalink / raw)
To: Peter Maydell
Cc: qemu-trivial, patches, qemu-devel, Andreas Färber,
Brad Smith
On Thu, Apr 12, 2012 at 12:43:41PM +0100, Peter Maydell wrote:
> 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>
> ---
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-04-13 8:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-12 11:43 [Qemu-trivial] [PATCH v2] bsd-user: fix compile failure Peter Maydell
2012-04-12 16:35 ` [Qemu-trivial] [Qemu-devel] " Stefan Weil
2012-04-13 8:57 ` Stefan Hajnoczi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).