On 02/20/2017 09:12 PM, Nikunj A Dadhania wrote:
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 <nik...@linux.vnet.ibm.com>
---
target/ppc/int_helper.c | 49 ++++++++++++++++---------------------------------
target/ppc/translate.c | 6 ++++--
2 files changed, 20 insertions(+), 35 deletions(-)
Reviewed-by: Richard Henderson <r...@twiddle.net>
r~