Re: [PATCH 02/10] target/arm: Correct value returned by pmu_counter_mask()

2022-08-11 Thread Richard Henderson
On 8/11/22 10:16, Peter Maydell wrote: pmu_counter_mask() accidentally returns a value with bits [63:32] set, because the expression it returns is evaluated as a signed value that gets sign-extended to 64 bits. Force the whole expression to be evaluated with 64-bit arithmetic with ULL suffixes.

[PATCH 02/10] target/arm: Correct value returned by pmu_counter_mask()

2022-08-11 Thread Peter Maydell
pmu_counter_mask() accidentally returns a value with bits [63:32] set, because the expression it returns is evaluated as a signed value that gets sign-extended to 64 bits. Force the whole expression to be evaluated with 64-bit arithmetic with ULL suffixes. The main effect of this bug was that a g