]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
exec: Restrict 'cpu_ldst.h' to TCG accelerator
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 3 Apr 2024 11:55:51 +0000 (13:55 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 26 Apr 2024 15:03:05 +0000 (17:03 +0200)
"exec/cpu_ldst.h" is specific to TCG, do not allow its
inclusion from other accelerators.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20240418192525.97451-6-philmd@linaro.org>

include/exec/cpu_ldst.h

index 5b99666702e36cef23b3e94296dcd70907bbff6b..f3c2a3ca74094feb4ee3c5c0882c20ecab6922cf 100644 (file)
@@ -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
 #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"