target/arm: Don't corrupt high half of PMOVSR when cycle counter overflows
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 22 Aug 2022 13:23:49 +0000 (14:23 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 14 Sep 2022 10:19:40 +0000 (11:19 +0100)
commit76e25d41d44c49eb0fe399064a719702a3023102
tree8057b5d34ad0ab90188943fd45b4cc78e65b0463
parentbb7d902154f7f17c9127631c42a21fbbc805cb40
target/arm: Don't corrupt high half of PMOVSR when cycle counter overflows

When the cycle counter overflows, we are intended to set bit 31 in PMOVSR
to indicate this. However a missing ULL suffix means that we end up
setting all of bits 63-31. Fix the bug.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220822132358.3524971-2-peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/arm/helper.c