From: Philippe Mathieu-Daudé Date: Mon, 28 Aug 2023 22:03:59 +0000 (+0200) Subject: exec/translation-block: Clean up includes X-Git-Tag: pull-xenfv-stable-20231106~115^2~21 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=8347f4922822da69d44448d4debeb816ebd3ee1a;p=users%2Fdwmw2%2Fqemu.git exec/translation-block: Clean up includes 'qemu/atomic.h' and 'exec/target_page.h' are not used. 'qemu/interval-tree.h' is only required for user emulation. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20230828221314.18435-12-philmd@linaro.org> --- diff --git a/include/exec/translation-block.h b/include/exec/translation-block.h index 5119924927..b785751774 100644 --- a/include/exec/translation-block.h +++ b/include/exec/translation-block.h @@ -7,11 +7,11 @@ #ifndef EXEC_TRANSLATION_BLOCK_H #define EXEC_TRANSLATION_BLOCK_H -#include "qemu/atomic.h" #include "qemu/thread.h" -#include "qemu/interval-tree.h" #include "exec/cpu-common.h" -#include "exec/target_page.h" +#ifdef CONFIG_USER_ONLY +#include "qemu/interval-tree.h" +#endif /* * Page tracking code uses ram addresses in system mode, and virtual