[Qemu-devel] [PATCH 3/4] PPC: mac99: Always add USB controller

2015-08-22 Thread Cormac O'Brien
From: Alexander Graf The mac99 machines always have a USB controller. Usually not having one around doesn't hurt quite as much, but Mac OS 9 really really wants one or it crashes on bootup. So always add OHCI to make it happy. Signed-off-by: Alexander Graf --- hw/ppc/mac_newworld.c | 3 ++- 1

[Qemu-devel] [PATCH 1/4] PPC: Allow Rc bit to be set on mtspr

2015-08-22 Thread Cormac O'Brien
From: Alexander Graf According to the ISA setting the Rc bit on mtspr is undefined behavior. Real 750 hardware simply ignores the bit and doesn't touch cr0 though. Unfortunately, Mac OS 9 relies on this fact and executes a few mtspr instructions (to set XER for example) with Rc set. So let's ha

[Qemu-devel] [PATCH 2/4] PPC: Fix lsxw bounds checks

2015-08-22 Thread Cormac O'Brien
From: Alexander Graf The lsxw instruction checks whether the desired string actually fits into all defined registers. Unfortunately it does the calculation wrong, resulting in illegal instruction traps for loads that really should fit. Fix it up, making Mac OS happier. Signed-off-by: Alexander

[Qemu-devel] [PATCH RFC 4/4] PPC: fix CUDA packet header size

2015-08-22 Thread Cormac O'Brien
Change the CUDA packet model to use a three-byte header as in real hardware. Also add handlers for CUDA_COMBINED_FORMAT_IIC and CUDA_GET_SET_IIC. Signed-off-by: Cormac O'Brien --- hw/input/adb.c | 2 +- hw/misc/macio/cuda.c | 54 ++

[Qemu-devel] [PATCH RFC 0/4] Mac OS 9 compatibility improvements

2015-08-22 Thread Cormac O'Brien
This patchset greatly improves QEMU's ability to run Mac OS 9 on the mac99 machine, allowing progress past the bootloader and partial progress through the load screen. Signed-off-by: Cormac O'Brien --- Alexander Graf (3): PPC: Allow Rc bit to be set on mtspr PPC: Fix lsxw bounds ch

[Qemu-devel] [PATCH v2] macio: remove nonexistent interrupt on pin 1

2015-06-17 Thread Cormac O'Brien
nterrupt, so it has been removed to permit further progress in the boot process. Signed-off-by: Cormac O'Brien --- hw/misc/macio/macio.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/hw/misc/macio/macio.c b/hw/misc/macio/macio.c index 063ad80..306c95e 100644 --- a/hw/misc/macio/m

[Qemu-devel] [PATCH] macio: remove nonexistent interrupt on pin 1

2015-06-08 Thread Cormac O'Brien
The current macio device implementation declares an interrupt that doesn't seem to exist in the actual hardware or any other emulators. Mac OS 9 counts the presence of this interrupt as a fatal error and progresses further without it. Signed-off-by: Cormac O'Brien --- hw/misc/macio/m

[Qemu-devel] GSoC 2015: Enabling Mac OS 9 support in QEMU

2015-05-12 Thread Cormac O'Brien
Hi all, My name is Cormac O'Brien and I'm one of QEMU's student developers for Google Summer of Code 2015. My project goal is to have Mac OS 9 running on both the g3beige and mac99 machines by the end of the summer (it currently doesn't boot on either). I'll be workin

[Qemu-devel] Missing interrupts on g3beige and mac99 machines

2015-04-16 Thread Cormac O'Brien
While trying to implement OS 9 support on QEMU, I've run into the following errors from the operating system: g3beige: *** MacOS: Fatal Error! (0xF3B37FDB) *** Official Apple copyright message missing. *** MacOS: Fatal Error! (0xF3B37FD