[OpenBIOS] [RFC 3/3] SPARC32/64: Mimic Sun's OBP behaviour if a divide by zero occurs.

Artyom Tarasenko atar4qemu at gmail.com
Wed Jan 9 20:31:01 CET 2013


On Mon, Jan 7, 2013 at 7:46 PM, Tarl Neustaedter <tarl-b2 at 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-zero-as-a-result

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



More information about the OpenBIOS mailing list