Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N0FZx-0007wS-Mh for qemu-devel@nongnu.org; Tue, 20 Oct 2009 10:20:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0FZt-0007vy-Jw for qemu-devel@nongnu.org; Tue, 20 Oct 2009 10:20:49 -0400 Received: from [199.232.76.173] (port=38092 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0FZt-0007vo-Cy for qemu-devel@nongnu.org; Tue, 20 Oct 2009 10:20:45 -0400 Received: from caffeine.csclub.uwaterloo.ca ([129.97.134.17]:33616) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N0FZs-0004ij-DW for qemu-devel@nongnu.org; Tue, 20 Oct 2009 10:20:45 -0400 Date: Tue, 20 Oct 2009 10:20:42 -0400 Subject: Re: [Qemu-devel] QEMU Target CPU support for PowerPC MPC8270 Message-ID: <20091020142042.GB5526@csclub.uwaterloo.ca> References: <889a3be10910192325y142b3fd3jedc93fc95c8602ea@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <889a3be10910192325y142b3fd3jedc93fc95c8602ea@mail.gmail.com> From: lsorense@csclub.uwaterloo.ca (Lennart Sorensen) List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Johnny Giacomoni Cc: qemu-devel@nongnu.org On Tue, Oct 20, 2009 at 08:25:27AM +0200, Johnny Giacomoni wrote: > Hi everybody ! > > I currently work on Linux (Open SUSE) to emulate a CPU (MC8270, FreeScale). > > I know that QEMU is designed to simulate Operating Systems, but I just want > to emulate a CPU. It seem to be possible with QEMU. > > So, by seeing on http://www.qemu.org/status.html that PowerPC target is > testing, I wonder if it's not supported yet. > > For example, I've created a HelloWorld program which has to be executed on a > PowerPC CPU. To reach this goal, I first cross-compiled it (thanks to > crosstools) with a powerpc-powerpc-linux-gnu TARGET. So, when I use qemu-ppc > -cpu MPC8270 it works, but just because it's running on Linux. I just want a > program being sure that it runs only on a PowerPC CPU. > > > Can I do that with QEMU ? How can I do ? > > I looked on some forums (mainly those of qemu) but I didn't find my answer > -> http://qemu-forum.ipi.fi/viewforum.php?f=25 > > Can you help me please ? > > Thanks. Have a nice day ! You could use qemu-system-ppc and emulate a powermac and install a ppc linux distribution in it, and run your program there. That works fine. -- Len Sorensen