Am 30.09.2007 um 16:37 schrieb J. Mayer:
If someone has a speedup idea for the __APPLE__ case, that could
still be applied separately.
I guess there are some already defined macros in the Apple build
environmnet that should be used instead. But I don't know too much
about
this environment... The slowdown is really not an issue in that
particular case.
Actually, I am now seeing that in math.h Apple itself uses
__attribute__ ((always_inline)) for __MATH_H_ALWAYS_INLINE__ if
__GNUC__ is defined ... so I now believe the issue is rather the
"recursive" definition of always_inline: QEMU defines always_inline
and it subsequently tries to replace always_inline inside the
__attribute__(()) in math.h! Could this be it?
Either way, if I run "qemu-system-ppc -boot d -cdrom debian-40r0-
powerpc-DVD-1.iso" this is what I get:
starting qemu...
qemu: fatal: Unable to find PowerPC CPU definition
NIP fffffffc LR 00000000 CTR 00000000
Bus error
I haven't used it in a while; as reported earlier, it didn't really
work back then either, but it worked "more", i.e. started to boot.
But this is with or without the patch, so unrelated - just saying I
can't confirm that this patch works 100%.
OK, just checked and I have this problem too. Will fix it as soon as I
can.
In between, you can just try to force the CPU, adding '-cpu 750' or
'-cpu 604' to your command line.
Thanks for this report !
Looks better, but still does not boot:
PMG5:~/Q/myqemu andreas$ ../latest/bin/qemu-system-ppc -boot d -
cdrom ../debian-40r0-powerpc-DVD-1.iso -cpu 604 -nographic
starting qemu...
register PCI host 'pci' 'pci' 'grackle' 'MOT,MPC106'
register 'pci' 'pci' 'grackle' 'MOT,MPC106' 0x80000000 in 'device-
tree' 0xffffffff
Done 582b000 582b880
PCI device '<null>' 0 0 0 has no reg properties:
PCI device '<null>' 0 0 0 has no assigned addresses properties:
register pci device 'Qemu VGA' 00000001 'display' 'VGA' 'Qemu VGA'
register 'Qemu VGA' 'display' 'VGA' 'Qemu VGA' 0x00000001 in 'pci'
0x80000000
Done 582b880 582ba00
PCI device 'Qemu VGA' 0 1 0 reg properties:
addr: 82000810 00000000 80000000 size: 00000000 00800000
PCI device 'Qemu VGA' 0 1 0 assigned addresses properties:
addr: 82000810 00000000 80000000 size: 00000000 00800000
register pci device 'NE2000' 00000002 'network' '<null>' 'NE2000 PCI'
register 'NE2000' 'network' '<null>' 'NE2000 PCI' 0x00000002 in 'pci'
0x80000000
Done 582b880 582bb00
PCI device 'NE2000' 0 2 0 reg properties:
addr: 01001010 00000000 00001000 size: 00000000 00000100
PCI device 'NE2000' 0 2 0 assigned addresses properties:
addr: 01001010 00000000 00001000 size: 00000000 00000100
register pci device 'pci-ata' 00000003 'pci-ide' '<null>' '<null>'
register 'pci-ata' 'pci-ide' '<null>' '<null>' 0x00000003 in 'pci'
0x80000000
Done 582b880 582bc00
PCI device 'pci-ata' 0 3 0 reg properties:
addr: 01001810 00000000 00001100 size: 00000000 00000100
addr: 01001814 00000000 00001200 size: 00000000 00000100
addr: 01001818 00000000 00001300 size: 00000000 00000100
addr: 0100181c 00000000 00001400 size: 00000000 00000100
addr: 01001820 00000000 00001500 size: 00000000 00000100
PCI device 'pci-ata' 0 3 0 assigned addresses properties:
addr: 01001810 00000000 00001100 size: 00000000 00000100
addr: 01001814 00000000 00001200 size: 00000000 00000100
addr: 01001818 00000000 00001300 size: 00000000 00000100
addr: 0100181c 00000000 00001400 size: 00000000 00000100
addr: 01001820 00000000 00001500 size: 00000000 00000100
register pci device 'mac-io' 00000004 'mac-io' 'paddingtonheathrow'
'AAPL,343S1211'
register 'mac-io' 'mac-io' 'paddingtonheathrow' 'AAPL,343S1211'
0x00000004 in 'pci' 0x80000000
Done 582b880 582be80
PCI device 'mac-io' 0 4 0 reg properties:
addr: 82002010 00000000 80880000 size: 00000000 00080000
PCI device 'mac-io' 0 4 0 assigned addresses properties:
addr: 82002010 00000000 80880000 size: 00000000 00080000
PPC Open Hack'Ware BIOS for qemu version 0.4.1
Build 2005-07-06 23:10:57
Copyright 2003-2005 Jocelyn Mayer
Memory size: 144 MB.
Booting from device d
ide0: drive 0: none
ide0: drive 1: CD-ROM
ERROR: OF_property_copy cannot get property 'cd' for aliases
ERROR: ATAPI TEST_UNIT_READY : status 48 != 0x08
ide1: drive 0: none
ide1: drive 1: none
ERROR: Found no boot partition!
Same for the other -cpu.
Regards,
Andreas