Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L9KDa-0003Jm-JO for qemu-devel@nongnu.org; Sun, 07 Dec 2008 09:02:42 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L9KDZ-0003I8-T0 for qemu-devel@nongnu.org; Sun, 07 Dec 2008 09:02:41 -0500 Received: from [199.232.76.173] (port=53930 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9KDZ-0003Hn-GG for qemu-devel@nongnu.org; Sun, 07 Dec 2008 09:02:41 -0500 Received: from hall.aurel32.net ([88.191.82.174]:35490) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L9KDY-0005yz-PO for qemu-devel@nongnu.org; Sun, 07 Dec 2008 09:02:41 -0500 Received: from aurel32 by hall.aurel32.net with local (Exim 4.63) (envelope-from ) id 1L9KDX-000185-Bz for qemu-devel@nongnu.org; Sun, 07 Dec 2008 15:02:39 +0100 Date: Sun, 7 Dec 2008 15:02:39 +0100 From: Aurelien Jarno Subject: Re: [Qemu-devel] PowerPC reset vector? Message-ID: <20081207140239.GU4440@hall.aurel32.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: Sender: Aurelien Jarno 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 Sun, Dec 07, 2008 at 02:58:40PM +0200, Blue Swirl wrote: > Hi, Hi! > Currently PPC hard reset vector is 0xfffffffc for most cases. I can't > find this vector in the few PPC docs I have. Instead all docs point to > 0x00100 + base, where base can be 0xfff00000 or zero. Is the vector > correct? According to the PowerISA manual, the reset exception vector is the one you define. However on power-up, the CPU does not jump to the reset exception vector but instead: - initialize msr - empty all TLB - create a boot TLB that maps the last 4kB page in the implemented effective storage address space that maps to the last 4kB page of the physical address space - start execution of instruction at the last word address of the page mapped by the boot TLB entry. > OHW seems to depend on this extra vector, so if we change it, there > may need to be some kind of compatibility hacks to let it work. OHW seems to follow exactly what is mapped in a real processor. OTOH, as qemu and the firmware are coupled, we can probably decide that the processor starts at the reset exception vector. > Background: Laurent Vivier and I are trying to get OpenBIOS to work on PPC. Nice work. I am following the progress on openbios-devel. How close are you to have a basic version working? -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' aurel32@debian.org | aurelien@aurel32.net `- people.debian.org/~aurel32 | www.aurel32.net