qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Build broken -- linux-user: take RESERVED_VA into accou


From: Stefan Weil
Subject: Re: [Qemu-devel] Build broken -- linux-user: take RESERVED_VA into account for g2h_valid()
Date: Thu, 12 Apr 2012 06:50:06 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.28) Gecko/20120313 Thunderbird/3.1.20

Am 11.04.2012 22:55, schrieb Peter Maydell:
On 11 April 2012 20:23, Brad Smith <address@hidden> wrote:
The following commit broke the build..

linux-user: take RESERVED_VA into account for g2h_valid()

Whoops. bsd-user is a bit unloved, I'm afraid. Can you try the
following one-line fix? If it works then I'll submit it to the mailing
list as a proper patch.

===begin===
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;
===endit===

I think we've broken darwin-user as well, but that is even less loved
and there was a discussion on IRC a while back about simply removing it.

-- PMM

Please use 'uintptr_t' instead of 'unsigned long'.

It does not matter in this special case, but guest_base and
reserved_va will be changed by my patches for w64 to use
uintptr_t. The data types 'long' and 'unsigned long' are
should be avoided.

Thanks,

Stefan W.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]