From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MRs1Y-0008Tz-AJ for qemu-devel@nongnu.org; Fri, 17 Jul 2009 14:19:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MRs1T-0008RC-GD for qemu-devel@nongnu.org; Fri, 17 Jul 2009 14:19:11 -0400 Received: from [199.232.76.173] (port=51643 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRs1T-0008Qm-A4 for qemu-devel@nongnu.org; Fri, 17 Jul 2009 14:19:07 -0400 Received: from mx2.redhat.com ([66.187.237.31]:35993) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MRs1S-0002Oj-Qh for qemu-devel@nongnu.org; Fri, 17 Jul 2009 14:19:07 -0400 From: Juan Quintela In-Reply-To: <200907171219.n6HCJOOJ013182@d01av03.pok.ibm.com> (Anthony Liguori's message of "Fri\, 17 Jul 2009 12\:19\:26 -0000") References: <200907171219.n6HCJOOJ013182@d01av03.pok.ibm.com> Date: Fri, 17 Jul 2009 20:11:36 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] Re: [COMMIT 379f669] Userspace guest address offsetting List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel@nongnu.org, Paul Brook Anthony Liguori wrote: > From: Paul Brook > > Re-implement GUEST_BASE support. > Offset guest ddress space by default if the guest binary contains > regions below the host mmap_min_addr. > Implement support for i386, x86-64 and arm hosts. > > Signed-off-by: Riku Voipio > Signed-off-by: Paul Brook Hi I need this patch to be able to crosscompile for windows. No, I don't know if it is correct, but for the context it looks like this is the intent. Paul? Signed-off-by: Juan Quintela diff --git a/tcg/i386/tcg-target.c b/tcg/i386/tcg-target.c index ed61780..a95fe4c 100644 --- a/tcg/i386/tcg-target.c +++ b/tcg/i386/tcg-target.c @@ -624,7 +624,7 @@ static void tcg_out_qemu_ld(TCGContext *s, const TCGArg *args, } if (!bswap) { tcg_out_modrm_offset(s, 0x8b, data_reg, r0, GUEST_BASE); - tcg_out_modrm_offset(s, 0x8b, data_reg2, r0, GUEST+BASE + 4); + tcg_out_modrm_offset(s, 0x8b, data_reg2, r0, GUEST_BASE + 4); } else { tcg_out_modrm_offset(s, 0x8b, data_reg, r0, GUEST_BASE + 4); tcg_out_opc(s, (0xc8 + data_reg) | P_EXT);