OSDN Git Service

hw/ppc: Always store the decrementer value
authorNicholas Piggin <npiggin@gmail.com>
Tue, 8 Aug 2023 04:19:51 +0000 (14:19 +1000)
committerCédric Le Goater <clg@kaod.org>
Wed, 6 Sep 2023 09:19:33 +0000 (11:19 +0200)
commitfebb71d543a8f747b2f8aaf0182d0a385c6a02c3
tree1bcb4ba9dc4111b29aaf3fcba7a5c50861196e65
parentc8fbc6b9f2f3c732ee3307093c1c5c367eaa64ae
hw/ppc: Always store the decrementer value

When writing a value to the decrementer that raises an exception, the
irq is raised, but the value is not stored so the store doesn't appear
to have changed the register when it is read again.

Always store the write value to the register.

Fixes: e81a982aa53 ("PPC: Clean up DECR implementation")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/ppc/ppc.c