On 14/10/25 22:35, Anton Johansson wrote:
Fix to 64 bits to hold all relevant values.

Signed-off-by: Anton Johansson <[email protected]>
Reviewed-by: Pierrick Bouvier <[email protected]>
---
  target/riscv/cpu.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h
index c192359e56..cb99314679 100644
--- a/target/riscv/cpu.h
+++ b/target/riscv/cpu.h
@@ -223,7 +223,7 @@ typedef struct PMUCTRState {
      /* Snapshot value of a counter */
      uint64_t mhpmcounter_prev;
      /* Value beyond UINT32_MAX/UINT64_MAX before overflow interrupt trigger */
-    target_ulong irq_overflow_left;
+    uint64_t irq_overflow_left;
  } PMUCTRState;

Reviewed-by: Philippe Mathieu-Daudé <[email protected]>


Reply via email to