]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/riscv: Remove ifndef CONFIG_USER_ONLY from cpu_cfg.h
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 13 Mar 2025 03:23:18 +0000 (20:23 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 23 Apr 2025 21:08:44 +0000 (14:08 -0700)
While RISCVCPUConfig.satp_mode is unused for user-only,
this header is used from disas/riscv.h, whose users are
only built once.  The savings of 4 bytes isn't worth it.

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/riscv/cpu_cfg.h

index 8a843482cc64e15b19a9933ed17de92d1098fa26..cfe371b829d7f667e436047a7fbfb2f19dd2e97e 100644 (file)
@@ -196,9 +196,7 @@ struct RISCVCPUConfig {
 
     bool short_isa_string;
 
-#ifndef CONFIG_USER_ONLY
     RISCVSATPMap satp_mode;
-#endif
 };
 
 typedef struct RISCVCPUConfig RISCVCPUConfig;