Skip to contentSkip to conversation

target/ppc fp cleanups

PATCH Programmingkid 1 participant 1 message Jul 5, 2018 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 30 lines

Hi,

qemu-system-ppc has an issue after building from the 3.1 branch. Mac OS 9 hangs at the grey boot screen, OSX 10.3 hangs after verbose boot, just before entering the graphical desktop.

Command line to reproduce:

qemu-system-ppc -L pc-bios -boot c -M mac99,via=pmu -m 512 -prom-env 'auto-boot?=true' -prom-env 'boot-args=-v' -prom-env 'vga-ndrv?=true' -drive file=MacOS9.2.img,format=raw,media=disk -netdev user,id=network01 -device sungem,netdev=network01

I bisected to this commit:

cdee6bed3e2ed60f039fb84f63c5dc5f4af4619c is the first bad commit commit cdee6bed3e2ed60f039fb84f63c5dc5f4af4619c

Author: Richard Henderson <[email protected]>
Date:   Tue Jul 3 08:17:32 2018 -0700

target/ppc: Use non-arithmetic conversions for fp load/store

Memory operations have no side effects on fp state. The use of a "real" conversions between float64 and float32 would raise exceptions for SNaN and out-of-range inputs.

Quoted 7 lines

:040000 040000 d61b35b777c3ac2f28980a98fc83b8dfdce11bba
ec7c15afcef93cc469c5ee0a2bfda293ba745dc3 M target

Thanks for looking into it.

Best regards,
Howard

I also noticed that my Mac OS 10.4.3 VM stopped booting. When I reversed the above patch the VM started booting again. I am CC'ing Richard Henderson on this issue.