From: Philippe Mathieu-Daudé Date: Wed, 3 Apr 2024 11:55:51 +0000 (+0200) Subject: exec: Restrict 'cpu_ldst.h' to TCG accelerator X-Git-Tag: v9.1.0-rc0~133^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1ce871a3e7dd3913752966064c406c08193aa992;p=thirdparty%2Fqemu.git exec: Restrict 'cpu_ldst.h' to TCG accelerator "exec/cpu_ldst.h" is specific to TCG, do not allow its inclusion from other accelerators. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20240418192525.97451-6-philmd@linaro.org> --- diff --git a/include/exec/cpu_ldst.h b/include/exec/cpu_ldst.h index 5b99666702e..f3c2a3ca740 100644 --- a/include/exec/cpu_ldst.h +++ b/include/exec/cpu_ldst.h @@ -1,5 +1,5 @@ /* - * Software MMU support + * Software MMU support (per-target) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -62,6 +62,10 @@ #ifndef CPU_LDST_H #define CPU_LDST_H +#ifndef CONFIG_TCG +#error Can only include this header with TCG +#endif + #include "exec/memopidx.h" #include "exec/abi_ptr.h" #include "exec/mmu-access-type.h"