]> xenbits.xensource.com Git - qemu-xen.git/commit
target/ppc: Fix the test raising the decrementer exception
authorCédric Le Goater <clg@kaod.org>
Tue, 5 Oct 2021 05:33:24 +0000 (07:33 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 21 Oct 2021 00:42:47 +0000 (11:42 +1100)
commita8dcb8da8a95edde3d6d8bb6a0502d50ed632557
tree9fa9473026a049ef3141356a20bbd2761ab54a0c
parent491b3cca3653bf36db67f91be0e3db64682bef91
target/ppc: Fix the test raising the decrementer exception

Commit 4d9b8ef9b5ab ("target/ppc: Fix 64-bit decrementer") introduced
new int64t variables and broke the test triggering the decrementer
exception. Revert partially the change to evaluate both clause of the
if statement.

Reported-by: Coverity CID 1464061
Fixes: 4d9b8ef9b5ab ("target/ppc: Fix 64-bit decrementer")
Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20211005053324.441132-1-clg@kaod.org>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/ppc.c