Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KOdLY-0001c6-Hw for qemu-devel@nongnu.org; Thu, 31 Jul 2008 14:57:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KOdLX-0001aR-EQ for qemu-devel@nongnu.org; Thu, 31 Jul 2008 14:57:56 -0400 Received: from [199.232.76.173] (port=60205 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KOdLW-0001aK-Ss for qemu-devel@nongnu.org; Thu, 31 Jul 2008 14:57:54 -0400 Received: from fe01x03-cgp.akado.ru ([77.232.31.164]:52582 helo=akado.ru) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KOdLW-0007TU-IP for qemu-devel@nongnu.org; Thu, 31 Jul 2008 14:57:54 -0400 Received: from av1474.oops ([10.0.66.9] verified) by fe01-cgp.akado.ru (CommuniGate Pro SMTP 5.1.16) with ESMTPS id 22254317 for qemu-devel@nongnu.org; Thu, 31 Jul 2008 22:57:25 +0400 Date: Thu, 31 Jul 2008 22:57:31 +0400 (MSD) From: malc Subject: Re: [Qemu-devel] Mac OS X PPC host support (was: [4932] Preliminary PPC64/Linux host support) In-Reply-To: Message-ID: References: <0D03767C-CA27-40D9-B390-04F6BECC9603@web.de> <9ABED4D6-5AFB-44D4-A1F6-A86B5E139543@web.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Wed, 30 Jul 2008, Blue Swirl wrote: > On 7/29/08, malc wrote: >> I have made a stab at making it work and tried it on MacOS X (Tiger) that >> i have here, for Sparc it progress a bit further but still meets it's doom >> shortly: >> >> qemu: fatal: Trap 0x29 while interrupts disabled, Error state >> pc: ffd04020 npc: ffd04024 >> General Registers: >> %g0: 00000000 %g1: 00000000 %g2: ffd908e0 %g3: ffd00000 >> %g4: ffd83038 %g5: 00000001 %g6: 00000000 %g7: 00000000 >> Current Register Window: >> %o0: 00000000 %o1: 00000000 %o2: 00000000 %o3: 00000000 >> %o4: 00000000 %o5: 00000000 %o6: ffdd3fa0 %o7: 00000000 >> %l0: 00000000 %l1: 00000000 %l2: 00000000 %l3: 00000000 >> %l4: 00000000 %l5: 00000000 %l6: 00000000 %l7: 00000000 >> %i0: 00000000 %i1: 00000000 %i2: 00000000 %i3: 00000000 >> %i4: 00000000 %i5: 00000000 %i6: 00000000 %i7: 00000000 >> >> Floating Point Registers: >> [all bit zero FPRs snipped] >> psr: 0x04001fc0 -> ---- SP- wim: 0x00000001 >> fsr: 0x00080000 >> >> BlueSwirl, rings any bells? > > 29 is Data Access Exception, raised from unassigned memory access. The code is > > 0xffd04020: std %l0, [ %sp ] > > which is a double word store. Address in %sp (%o6, 0xffdd3fa0) is OK. > So I'd check if qemu_st64 generates correct code. That was spot on, thanks once again. I have notified main tcg proper to not align register parameters, but failed to do so myself when calling qemu_stXX helpers. With that fixed Sparc test image boots in MacOS X, i386 test image does make it to ext2fs warning but then just hangs there waiting for something, and some dma timer warning messages popup in the console after a while, therefore i'm reluctant on commiting it just now. That said the code is there: http://repo.or.cz/w/qemu/malc.git?a=shortlog;h=refs/heads/tcgppc32macosx (warning, one commit was amended so things will not fast-forward) My MacOS X stuff is outdated so maybe the i386 problem is not a TCG one, testing from uptodate MacOS X/PPC32 people would be needed. And i think someone more MacOS X inclined should take over this part. -- mailto:av1474@comtv.ru