From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40702) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJ5aW-0000T6-Ik for qemu-devel@nongnu.org; Mon, 09 Sep 2013 13:49:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJ5aQ-0006if-Iy for qemu-devel@nongnu.org; Mon, 09 Sep 2013 13:49:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53021) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJ5aQ-0006iN-AK for qemu-devel@nongnu.org; Mon, 09 Sep 2013 13:49:18 -0400 Message-ID: <522E0A11.1090109@redhat.com> Date: Mon, 09 Sep 2013 19:49:05 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1378051658-3393-1-git-send-email-rth@twiddle.net> <1378051658-3393-4-git-send-email-rth@twiddle.net> <5212753A.7050509@redhat.com> <522E088F.30607@twiddle.net> In-Reply-To: <522E088F.30607@twiddle.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 3/4] tcg-ppc: Convert to helper_ret_ld/st_mmu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: "Vassili Karpov (malc)" , qemu-devel@nongnu.org, aurelien@aurel32.net Il 09/09/2013 19:42, Richard Henderson ha scritto: > On 08/19/2013 12:42 PM, Paolo Bonzini wrote: >> Bad news... with this patch, either with or without patch 2, trying to execute >> sieve.flat from kvm-unit-tests (it doesn't matter if it is compiled as 32-bit >> or 64-bit, and with both i386-softmmu and x86_64-softmmu targets) fails as >> follows on my PowerBook: >> >> qemu: fatal: Trying to execute code outside RAM or ROM at 0x70360000 > > Hum. Are you sure it's anything related to the ppc backend at all? This > test doesn't work with an x86_64 host either. > > qemu: fatal: Trying to execute code outside RAM or ROM at 0x004001ba > > EAX=80000011 EBX=00009500 ECX=c0000080 EDX=00000000 > ESI=00000000 EDI=00542000 EBP=00000000 ESP=0044abbc > EIP=004001ba EFL=00000046 [---Z-P-] CPL=0 II=0 A20=1 SMM=0 HLT=0 > ES =0010 00000000 ffffffff 00cf9300 DPL=0 DS [-WA] > CS =0008 00000000 ffffffff 00cf9a00 DPL=0 CS32 [-R-] > SS =0010 00000000 ffffffff 00cf9300 DPL=0 DS [-WA] > DS =0010 00000000 ffffffff 00cf9300 DPL=0 DS [-WA] > FS =0010 00000000 ffffffff 00cf9300 DPL=0 DS [-WA] > GS =0010 00000000 ffffffff 00cf9300 DPL=0 DS [-WA] > LDT=0000 00000000 0000ffff 00008200 DPL=0 LDT > TR =0000 00000000 0000ffff 00008b00 DPL=0 TSS32-busy > GDT= 0040800a 00000447 > IDT= 00000000 000003ff > CR0=80000011 CR2=00000000 CR3=00407000 CR4=00000020 > DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000 > DR6=ffff0ff0 DR7=00000400 > CCS=00000000 CCD=00000000 CCO=SARL > EFER=0000000000000000 > FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80 > FPR0=0000000000000000 0000 FPR1=0000000000000000 0000 > FPR2=0000000000000000 0000 FPR3=0000000000000000 0000 > FPR4=0000000000000000 0000 FPR5=0000000000000000 0000 > FPR6=0000000000000000 0000 FPR7=0000000000000000 0000 > XMM00=00000000000000000000000000000000 XMM01=00000000000000000000000000000000 > XMM02=00000000000000000000000000000000 XMM03=00000000000000000000000000000000 > XMM04=00000000000000000000000000000000 XMM05=00000000000000000000000000000000 > XMM06=00000000000000000000000000000000 XMM07=00000000000000000000000000000000 > Aborted (core dumped) > > This happens after one of the writes to %cr0. Of course, the test works with > kvm enabled, so I don't blame the test so much as the target-i386 front end... > > This is not new breakage, either. I've checked back through 1.4.0 and I can't > make it work with any version of TCG. Strange... works here with 1.6.0 from Fedora $ time qemu-system-x86_64 -device isa-debug-exit,iobase=0xf4 -serial stdio -kernel sieve64.flat enabling apic starting sieve static:78498 out of 1000000 paging enabled cr0 = 80010011 cr3 = 7fff000 cr4 = 20 mapped:78498 out of 1000000 virtual:5761455 out of 100000000 virtual:5761455 out of 100000000 virtual:5761455 out of 100000000 real 0m50.056s user 0m49.467s sys 0m0.415s I sent you my binaries offlist. Paolo