From: Richard Henderson Date: Thu, 13 Mar 2025 03:23:18 +0000 (-0700) Subject: target/riscv: Remove ifndef CONFIG_USER_ONLY from cpu_cfg.h X-Git-Tag: v10.1.0-rc0~117^2~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4610f38095a3ae01177fe67fd70e4d66b683259;p=thirdparty%2Fqemu.git target/riscv: Remove ifndef CONFIG_USER_ONLY from cpu_cfg.h 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 Reviewed-by: Pierrick Bouvier Signed-off-by: Richard Henderson --- diff --git a/target/riscv/cpu_cfg.h b/target/riscv/cpu_cfg.h index 8a843482cc6..cfe371b829d 100644 --- a/target/riscv/cpu_cfg.h +++ b/target/riscv/cpu_cfg.h @@ -196,9 +196,7 @@ struct RISCVCPUConfig { bool short_isa_string; -#ifndef CONFIG_USER_ONLY RISCVSATPMap satp_mode; -#endif }; typedef struct RISCVCPUConfig RISCVCPUConfig;