From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:44300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlH7C-0003lS-7Z for qemu-devel@nongnu.org; Mon, 25 Jul 2011 05:06:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QlH7B-00052B-85 for qemu-devel@nongnu.org; Mon, 25 Jul 2011 05:06:18 -0400 Received: from ch1ehsobe001.messaging.microsoft.com ([216.32.181.181]:17068 helo=ch1outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlH7B-000527-0X for qemu-devel@nongnu.org; Mon, 25 Jul 2011 05:06:17 -0400 Message-ID: <4E2D31F7.70607@amd.com> Date: Mon, 25 Jul 2011 11:05:59 +0200 From: Christoph Egger MIME-Version: 1.0 References: <4DFB2859.4070605@amd.com> <4E2AF422.5050902@codemonkey.ws> In-Reply-To: <4E2AF422.5050902@codemonkey.ws> Content-Type: multipart/mixed; boundary="------------050001040906030207060504" Subject: Re: [Qemu-devel] [PATCH] use mmap to allocate execute memory List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: "qemu-devel@nongnu.org" --------------050001040906030207060504 Content-Type: text/plain; charset="ISO-8859-15"; format=flowed Content-Transfer-Encoding: 7bit On 07/23/11 18:17, Anthony Liguori wrote: > On 06/17/2011 05:11 AM, Christoph Egger wrote: >> >> Use mmap to allocate executable memory on NetBSD as well. >> >> From: Tobias Nygren >> Signed-off-by: Christoph Egger >> >> diff --git a/exec.c b/exec.c >> index 09928a3..1954a1c 100644 >> --- a/exec.c >> +++ b/exec.c >> @@ -520,7 +520,8 @@ static void code_gen_alloc(unsigned long tb_size) >> } >> } >> #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) \ >> - || defined(__DragonFly__) || defined(__OpenBSD__) > > Your mailer munged this patch. ... or by the MS Exchange Server. Resending the patch as attachment, the only one way I have that works for everyone. Sorry. Use mmap to allocate executable memory on NetBSD as well. From: Tobias Nygren Signed-off-by: Christoph Egger -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Einsteinring 24, 85689 Dornach b. Muenchen Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 --------------050001040906030207060504 Content-Type: text/plain; name="qemu_exec.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="qemu_exec.diff" Content-Description: qemu_exec.diff diff --git a/exec.c b/exec.c index 09928a3..1954a1c 100644 --- a/exec.c +++ b/exec.c @@ -520,7 +520,8 @@ static void code_gen_alloc(unsigned long tb_size) } } #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) \ - || defined(__DragonFly__) || defined(__OpenBSD__) + || defined(__DragonFly__) || defined(__OpenBSD__) \ + || defined(__NetBSD__) { int flags; void *addr = NULL; --------------050001040906030207060504--