]> 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)
committerCédric Le Goater <clg@kaod.org>
Wed, 6 Sep 2023 09:19:33 +0000 (11:19 +0200)
commitea62f8a5172cf5fcd97df143b758730f6865a625
treec3337779b29c13eb668edd7c113ada1dfad134ce
parent30d0647bcfa99d4a141eaa843a9fb5b091ddbb76
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>
hw/ppc/ppc.c