]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/ppc: fix timebase register reset state
authorNicholas Piggin <npiggin@gmail.com>
Thu, 19 Dec 2024 03:40:31 +0000 (13:40 +1000)
committerNicholas Piggin <npiggin@gmail.com>
Tue, 11 Mar 2025 12:43:32 +0000 (22:43 +1000)
commite8291ec16da80566c121c68d9112be458954d90b
tree34d39296889cebc6b7d5a14160530acb9dd941a9
parent5f7d861e65d90e0446b8f22a0bc859a5d8058ea6
target/ppc: fix timebase register reset state

(H)DEC and PURR get reset before icount does, which causes them to be
skewed and not match the init state. This can cause replay to not
match the recorded trace exactly. For DEC and HDEC this is usually not
noticable since they tend to get programmed before affecting the
target machine. PURR has been observed to cause replay bugs when
running Linux.

Fix this by resetting using a time of 0.

Message-ID: <20241219034035.1826173-2-npiggin@gmail.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
hw/ppc/ppc.c