qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] Enable support for PPC64 on qemu target v2


From: Alexander Graf
Subject: Re: [Qemu-devel] [PATCH] Enable support for PPC64 on qemu target v2
Date: Sat, 28 Feb 2009 01:24:34 +0100


On 27.02.2009, at 22:47, Blue Swirl wrote:

On 2/27/09, Alexander Graf <address@hidden> wrote:
This patch enables OpenBIOS to initialize on PPC64, enabling support for
-cpu 970fx.
It gets up to the boot prompt and works rather good so far, though I haven't
been able to run a kernel yet.

It looks like there is a bug in Qemu (testing boot from Debian 4.0R5 CD):

invalid/unsupported opcode: 1e - 12 - 1b (782106e4) 00000000014080e4 1
IN:
0x00000000014080d0:  mr      r31,r3
0x00000000014080d4:  mr      r30,r4
0x00000000014080d8:  mr      r29,r5
0x00000000014080dc:  mr      r28,r6
0x00000000014080e0:  mr      r27,r7
0x00000000014080e4:  rldicr  r1,r1,0,59

But rldicr should be supported on a 750, according to "IBM PowerPC 740
/ PowerPC 750 RISC Microprocessor User’s Manual".

Please keep in mind that booting a PPC64 kernel doesn't work for me yet. I'm currently stuck with the DSI handler clobbering the high 32 bits in the 64 bit GPRs.

I'll try to write up a patch that provides custom register save/ restore code for ppc64. Are there any preferences on that?

Would it be better to build a specific PPC64 binary or to detect which code to take in runtime and patch it accordingly?

Alex



reply via email to

[Prev in Thread] Current Thread [Next in Thread]