From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kd5u6-0005dx-PQ for qemu-devel@nongnu.org; Tue, 09 Sep 2008 12:17:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kd5u6-0005cW-3n for qemu-devel@nongnu.org; Tue, 09 Sep 2008 12:17:22 -0400 Received: from [199.232.76.173] (port=40225 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kd5u5-0005c8-TP for qemu-devel@nongnu.org; Tue, 09 Sep 2008 12:17:21 -0400 Received: from qw-out-1920.google.com ([74.125.92.149]:32724) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kd5u5-0008Qg-Uu for qemu-devel@nongnu.org; Tue, 09 Sep 2008 12:17:22 -0400 Received: by qw-out-1920.google.com with SMTP id 5so303552qwc.4 for ; Tue, 09 Sep 2008 09:17:21 -0700 (PDT) Message-ID: Date: Tue, 9 Sep 2008 19:16:48 +0300 From: "Blue Swirl" Subject: Re: [Qemu-devel] [Patch] Ali Chipset support for PC [+ questions about alpha-softmmu target] In-Reply-To: <1220975614.29130.86.camel@nibbler.dlib.indiana.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1220975614.29130.86.camel@nibbler.dlib.indiana.edu> 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 9/9/08, Brian Wheeler wrote: > Hello! > > Long time listener, first time caller... > > Since the ES40 Alpha Emulation project seems to have stalled, I've been > looking at what it would take to get QEmu to a state where it could > emulate an alpha machine. > > The es40 is basically a PC with an alpha chip instead of an x86 and it > uses the Ali1543C south bridge. This basically is a copy of piix_pci.c > so the chipset reports the ALI vendor and device codes to qemu when the > "alipc" machine type is selected. IMHO pc.c would support more machines more cleanly if hardware definition structures like Sparc ones were used. Otherwise the patch looks fine to me. > I've booted Knoppix and it seems to work ok...which is no surpise > considering how minor the changes are. > > So, now to the questions: > * Is anyone else working on a softmmu target for the alpha? > > * What state is the alpha cpu emulation in, and what's the best way to > test it? > > * What's the most simple -softmmu target that could be used as a > starting point? Depends on what you know, x86 is quite baroque but everyone knows the basic architecture. Sparc32 is pretty simple. > * Where is the virtual->physical address translation code? I peeked > around and couldn't find it very easily. cpu_*_handle_mmu_fault(), usually in target-*/helper.c. > * Looking over some of the softmmu targets, it looks like the bulk of > target work (after the cpu emulation, of course) is just attaching all > of the devices in the right places. True. Also it's not hard to create new devices.