x86: fix daa opcode for al register values higher than 0xf9
authorBoris Figovsky <boris.figovsky@ravellosystems.com>
Tue, 30 Aug 2011 07:00:55 +0000 (10:00 +0300)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Fri, 2 Sep 2011 10:08:44 +0000 (11:08 +0100)
commitc6bfc164e8f929e1e6a79f7b5a3cf096b22ef5f3
treecdef47e029336ea1cd56178c2e9ce192404352a9
parent6f9faa91f5fb3a866f5bf592207c9498a017740d
x86: fix daa opcode for al register values higher than 0xf9

The second if statement should consider the original al register value,
and not the new one.

Signed-off-by: Boris Figovsky <boris.figovksy@ravellosystems.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
target-i386/op_helper.c