qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 2/7] target/riscv: Adjust PMP size for no-MMU RV64 QEMU ru


From: Richard Henderson
Subject: Re: [PATCH v3 2/7] target/riscv: Adjust PMP size for no-MMU RV64 QEMU running RV32
Date: Wed, 3 Jul 2024 09:48:15 -0700
User-agent: Mozilla Thunderbird

On 7/3/24 07:49, LIU Zhiwei wrote:
-            pmp_size = sizeof(target_ulong);
+            pmp_size = 2UL << riscv_cpu_mxl(env);

UL is almost always incorrect in qemu, as 'long' has no specifically useful 
meaning.

In this case you can drop it completely.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]