diff options
author | Jose Ricardo Ziviani <joserz@linux.vnet.ibm.com> | 2017-01-10 00:10:12 -0200 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2017-01-31 10:10:14 +1100 |
commit | a54238adac8e6fc4ba8bffe8299216b73ef3d3ee (patch) | |
tree | 99e324e66d452da92a8b5e5b7ae8280f0a9aaa4f /target/ppc/helper.h | |
parent | a49a95e9e4dc2652cdc8a1e4fb1bfb66dba2e1d8 (diff) | |
download | qemu-a54238adac8e6fc4ba8bffe8299216b73ef3d3ee.zip qemu-a54238adac8e6fc4ba8bffe8299216b73ef3d3ee.tar.gz qemu-a54238adac8e6fc4ba8bffe8299216b73ef3d3ee.tar.bz2 |
ppc: Implement bcdsr. instruction
bcdsr.: Decimal shift and round. This instruction works like bcds.
however, when performing right shift, 1 will be added to the
result if the last digit was >= 5.
Signed-off-by: Jose Ricardo Ziviani <joserz@linux.vnet.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'target/ppc/helper.h')
-rw-r--r-- | target/ppc/helper.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/ppc/helper.h b/target/ppc/helper.h index 161d537..3cac050 100644 --- a/target/ppc/helper.h +++ b/target/ppc/helper.h @@ -395,6 +395,7 @@ DEF_HELPER_4(bcdcpsgn, i32, avr, avr, avr, i32) DEF_HELPER_3(bcdsetsgn, i32, avr, avr, i32) DEF_HELPER_4(bcds, i32, avr, avr, avr, i32) DEF_HELPER_4(bcdus, i32, avr, avr, avr, i32) +DEF_HELPER_4(bcdsr, i32, avr, avr, avr, i32) DEF_HELPER_2(xsadddp, void, env, i32) DEF_HELPER_2(xsaddqp, void, env, i32) |