]> 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:43:49 +0000 (23:43 +0300)
commit270bf7977fbda35d1bb63decd8c670f16c30602e
tree41c6a6e2d40f7c447a22c2c58a6028e8b950cb24
parente916d29608c83f4dc521c58fe9c57b17affcc943
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