Commit a5572e5214 for qemu.org

commit a5572e5214771b288bd7234c48cfd513b1eac81f
Author: Richard Henderson <richard.henderson@linaro.org>
Date:   Sat Aug 8 09:54:23 2026 -0700

    target/riscv: Improve riscv_has_ext

    Constify the env pointer and return bool.

    Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
    Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h
index c9dfa7daff..376cff656f 100644
--- a/target/riscv/cpu.h
+++ b/target/riscv/cpu.h
@@ -615,7 +615,7 @@ struct RISCVCPUClass {
     RISCVCPUDef *def;
 };

-static inline int riscv_has_ext(CPURISCVState *env, uint32_t ext)
+static inline bool riscv_has_ext(const CPURISCVState *env, uint32_t ext)
 {
     return (env->misa_ext & ext) != 0;
 }