On Mon, Jan 7, 2013 at 7:46 PM, Tarl Neustaedter tarl-b2@tarl.net wrote:
On 2013-Jan-7 13:44 , Programmingkid wrote:
What PowerPC systems trap on divide by zero?
PPC 8360 http://stackoverflow.com/questions/6460558/powerpc-how-to-make-div-0-return-...
Actually from this article I don't see that exception is happening in the Firmware. I'm very surprised, but our tests on RS/6000 (PReP) and Beige Rev 1 (thanks dreadbit for testing that!) show that PPC firmware allows division by zero:
0 > 1 0 / ok 1 > 0 0 / ok 2 > . 0 ok 1 > . 0 ok 0 >
It would be interesting to know what happens on a CHRP platform.
-- Regards, Artyom Tarasenko
solaris/sparc under qemu blog: http://tyom.blogspot.com/search/label/qemu