]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/ppc: Read time only once to perform decrementer write
authorNicholas Piggin <npiggin@gmail.com>
Tue, 8 Aug 2023 04:19:54 +0000 (14:19 +1000)
committerMichael Tokarev <mjt@tls.msk.ru>
Mon, 25 Sep 2023 20:44:30 +0000 (23:44 +0300)
commitfb9e03529cb25c0c0a2bf019d7982082666394ae
treede652f99c882ef687fe867aa1cf1d7a46bbb8b40
parentb6fa8e42d14d320af6a045468f294bca2d17aeac
hw/ppc: Read time only once to perform decrementer write

Reading the time more than once to perform an operation always increases
complexity and fragility due to introduced deltas. Simplify the
decrementer write by reading the clock once for the operation.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
(cherry picked from commit ea62f8a5172cf5fcd97df143b758730f6865a625)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/ppc/ppc.c