Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KNCOG-00044s-1l for qemu-devel@nongnu.org; Sun, 27 Jul 2008 15:58:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KNCOF-00044I-1J for qemu-devel@nongnu.org; Sun, 27 Jul 2008 15:58:47 -0400 Received: from [199.232.76.173] (port=40119 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KNCOE-000443-E8 for qemu-devel@nongnu.org; Sun, 27 Jul 2008 15:58:46 -0400 Received: from fe02x03-cgp.akado.ru ([77.232.31.165]:59077 helo=akado.ru) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KNCOE-0008UE-0p for qemu-devel@nongnu.org; Sun, 27 Jul 2008 15:58:46 -0400 Received: from av1474.oops ([10.0.66.9] verified) by fe02-cgp.akado.ru (CommuniGate Pro SMTP 5.1.16) with ESMTPS id 18112737 for qemu-devel@nongnu.org; Sun, 27 Jul 2008 22:14:41 +0400 Date: Sun, 27 Jul 2008 22:14:46 +0400 (MSD) From: malc Subject: Re: [Qemu-devel] [4932] Preliminary PPC64/Linux host support In-Reply-To: Message-ID: References: <0D03767C-CA27-40D9-B390-04F6BECC9603@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 Sat, 26 Jul 2008, Andreas F?rber wrote: > > Am 26.07.2008 um 20:54 schrieb malc: > >>> there are currently numbers hardcoded for Linux. >> >> It's not just about numbers, last time i looked (cursory) the ABIs where >> a lot different (PPC32 case) just changing the numbers wont get one very >> far i think. > > Of course not only, but it's one step that could be applied. The stack > alignment is 16 Bytes for both, and the prolog in my ppc(32) branch seems to > match the referenced Apple pseudocode now. > > Where else do you have differences in mind? Which additional functions may > need to be adjusted? I'd have to check Darwins ABI to be sure, but here's the short list: a. Alignement of 64 bit arguments (in the register file) (This was the thing that confused Sparcs ASI helpers when i first tried to boot Sparc on, then new, PPC32 tcg) b. List of reserved registers c. The approach to TOC (or however Apple calls the substitute) In any case, PPC32 + MacOS X i can help with. PPC64 + MacOS X not so much. -- mailto:av1474@comtv.ru