target/ppc: simplify bcdadd/sub functions
commitd03b174a839d32f8beef8082753afdcf732be7b6
authorYasmin Beatriz <yasmins@linux.ibm.com>
Mon, 30 Jul 2018 17:09:17 +0000 (30 17:09 +0000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 21 Aug 2018 04:28:45 +0000 (21 14:28 +1000)
tree80612ef77423e49fe6c28956dc3a320b7e5c42a1
parent71c55a1eefef66cfc8afd686184d6371e35352cb
target/ppc: simplify bcdadd/sub functions

After solving a corner case in bcdsub, this patch simplifies the logic
of both bcdadd/sub instructions by removing some unnecessary local flags.
This commit also rearranges some if-else conditions in bcdadd to make it
easier to read.

Signed-off-by: Yasmin Beatriz <yasmins@linux.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/int_helper.c