qemu-ppc
[Top][All Lists]
Advanced

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

Re: [Qemu-ppc] [PATCH] mac99: Bring memory layout closer to real hardwar


From: BALATON Zoltan
Subject: Re: [Qemu-ppc] [PATCH] mac99: Bring memory layout closer to real hardware
Date: Wed, 16 Apr 2014 12:24:23 +0200 (CEST)
User-agent: Alpine 2.02 (LMD 1266 2009-07-14)

On Tue, 15 Apr 2014, Alexander Graf wrote:
Try to do the same with the _E macro. Be creative :)

This one did it:

diff --git a/target-ppc/translate.c b/target-ppc/translate.c
index e3fcb03..d1e175e 100644
--- a/target-ppc/translate.c
+++ b/target-ppc/translate.c
@@ -10341,7 +10341,7 @@ GEN_HANDLER(stop##u, opc, 0xFF, 0xFF, 0x00000000, type),
 #define GEN_STUX(name, stop, opc2, opc3, type)                                \
 GEN_HANDLER(name##ux, 0x1F, opc2, opc3, 0x00000001, type),
 #define GEN_STX_E(name, stop, opc2, opc3, type, type2)                        \
-GEN_HANDLER_E(name##x, 0x1F, opc2, opc3, 0x00000001, type, type2),
+GEN_HANDLER_E(name##x, 0x1F, opc2, opc3, 0x00000000, type, type2),
 #define GEN_STS(name, stop, op, type)                                         \
 GEN_ST(name, stop, op | 0x20, type)                                           \
 GEN_STU(name, stop, op | 0x21, type)                                          \

with this patch it gets past this crash and seems to boot and then run into some i2c devices that are not emulated by QEMU yet:

i2c_xfer_real: bus 1 ch 0 adr 0x92 sadr 2 read len 2
i2c_xfer_real: MODE 0x00 CTRL 0x00 STAT 0x00 ISR 0x00 REV 0x00 RISETIMECNT 0x00 
BITTIMECNT 0x00
i2c_xfer_real: ISCL/ISDA is not HIGH!
timeout waiting for int 0x00000002 at libfunctions.c:226, ISR 0x00000000
timeout waiting for int 0x00000004 at libfunctions.c:439, ISR 0x00000000
timeout waiting for stop int

i2c_xfer_real: bus 1 ch 0 adr 0x9c sadr 17 read len 1
i2c_xfer_real: MODE 0x00 CTRL 0x00 STAT 0x00 ISR 0x00 REV 0x00 RISETIMECNT 0x00 
BITTIMECNT 0x00
i2c_xfer_real: ISCL/ISDA is not HIGH!
timeout waiting for int 0x00000002 at libfunctions.c:226, ISR 0x00000000
timeout waiting for int 0x00000004 at libfunctions.c:439, ISR 0x00000000
timeout waiting for stop int

Does anyone know what these could be? (MorphOS seems to care about two I2C busses mapped at 0x80018000-0x80018fff (Keywest) and 0xf8001000-0xf8001fff (Uninorth).)

Regards,
BALATON Zoltan



reply via email to

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