]> git.proxmox.com Git - mirror_qemu.git/commit
target-ppc: Bug Fix: mulldo OV Detection
authorTom Musta <tommusta@gmail.com>
Tue, 12 Aug 2014 13:45:08 +0000 (08:45 -0500)
committerAlexander Graf <agraf@suse.de>
Mon, 8 Sep 2014 10:50:50 +0000 (12:50 +0200)
commit9824d01d5d789a57d27360c0f5e8ee44955eb1d7
treeaed8b85b25a9ac501f7df056fd4110cb5d259bb7
parent1fa74845f2bab36bfa37108b9054b53c1b8264b9
target-ppc: Bug Fix: mulldo OV Detection

Fix the code to properly detect overflow; the 128 bit signed
product must have all zeroes or all ones in the first 65 bits
otherwise OV should be set.

Example:

R3 45F086A5D5887509
R4 0000000000000002
mulldo 3,3,4

Should set XER[OV].

Signed-off-by: Tom Musta <tommusta@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/int_helper.c