aboutsummaryrefslogtreecommitdiff
path: root/target/ppc/translate/vmx-impl.inc.c
diff options
context:
space:
mode:
authorJose Ricardo Ziviani <joserz@linux.vnet.ibm.com>2017-01-10 00:10:12 -0200
committerDavid Gibson <david@gibson.dropbear.id.au>2017-01-31 10:10:14 +1100
commita54238adac8e6fc4ba8bffe8299216b73ef3d3ee (patch)
tree99e324e66d452da92a8b5e5b7ae8280f0a9aaa4f /target/ppc/translate/vmx-impl.inc.c
parenta49a95e9e4dc2652cdc8a1e4fb1bfb66dba2e1d8 (diff)
downloadqemu-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/translate/vmx-impl.inc.c')
-rw-r--r--target/ppc/translate/vmx-impl.inc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/ppc/translate/vmx-impl.inc.c b/target/ppc/translate/vmx-impl.inc.c
index fc54881..451abb5 100644
--- a/target/ppc/translate/vmx-impl.inc.c
+++ b/target/ppc/translate/vmx-impl.inc.c
@@ -1018,6 +1018,7 @@ GEN_BCD2(bcdsetsgn)
GEN_BCD(bcdcpsgn);
GEN_BCD(bcds);
GEN_BCD(bcdus);
+GEN_BCD(bcdsr);
static void gen_xpnd04_1(DisasContext *ctx)
{