]> git.proxmox.com Git - mirror_qemu.git/commit
target/ppc: add ov32 flag in divide operations
authorNikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Mon, 27 Feb 2017 04:58:00 +0000 (10:28 +0530)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 1 Mar 2017 00:23:39 +0000 (11:23 +1100)
commitc44027ffb91e7eb335f5a4d418906460044796b9
tree1f014cadc4d308cc28237e4929fe290ce412141f
parent61aa9a697a1ec9b102e86cb7ea96876e6f20afe3
target/ppc: add ov32 flag in divide operations

Add helper_div_compute_ov() in the int_helper for updating the overflow
flags.

For Divide Word:
SO, OV, and OV32 bits reflects overflow of the 32-bit result

For Divide DoubleWord:
SO, OV, and OV32 bits reflects overflow of the 64-bit result

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/translate.c