]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/ppc: Always store the decrementer value
authorNicholas Piggin <npiggin@gmail.com>
Tue, 8 Aug 2023 04:19:51 +0000 (14:19 +1000)
committerMichael Tokarev <mjt@tls.msk.ru>
Mon, 25 Sep 2023 20:44:30 +0000 (23:44 +0300)
commit1c2343cc6113968766953deb176a6b40b7c164b6
treea04b0c7b4fb847b76a6fc574c897cdd784a16ce5
parent97fec8f2c4c2c80c154050f403fe986e6edee2f1
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>
(cherry picked from commit febb71d543a8f747b2f8aaf0182d0a385c6a02c3)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/ppc/ppc.c