Re: [Qemu-devel] [PATCH v2] target/ppc: simplify bcdadd/sub functions

2018-07-31 Thread David Gibson
On Mon, Jul 30, 2018 at 05:09:17PM +, Yasmin Beatriz wrote: > 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

[Qemu-devel] [PATCH v2] target/ppc: simplify bcdadd/sub functions

2018-07-30 Thread Yasmin Beatriz
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 --- target/ppc/int_helper.c | 49