target-ppc: Implement bcd_is_valid function
commit071663dfc3b93e3f3e573d726cfb685fd25472fa
authorJose Ricardo Ziviani <joserz@linux.vnet.ibm.com>
Tue, 6 Dec 2016 19:40:04 +0000 (6 17:40 -0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 30 Jan 2017 23:10:13 +0000 (31 10:10 +1100)
treec283cff8cdff6476a5563b751544e4d9a9dc2b22
parent3259dbd9df967554dd8f77ec0afbb863e2664a2a
target-ppc: Implement bcd_is_valid function

A function to check if all digits of a given BCD number is valid is
here presented because more instructions will need to reuse the
same code.

Signed-off-by: Jose Ricardo Ziviani <joserz@linux.vnet.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/int_helper.c