From: Philippe Mathieu-Daudé Date: Fri, 22 Mar 2024 11:08:42 +0000 (+0100) Subject: plugins/api: Only include 'exec/ram_addr.h' with system emulation X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=155fb465b1a6c87d8fc002a670b6517a6790fad8;p=qemu.git plugins/api: Only include 'exec/ram_addr.h' with system emulation "exec/ram_addr.h" shouldn't be used with user emulation. Signed-off-by: Philippe Mathieu-Daudé Acked-by: Richard Henderson Message-Id: <20240427155714.53669-4-philmd@linaro.org> --- diff --git a/plugins/api.c b/plugins/api.c index 8fa5a600ac..eaee344d8e 100644 --- a/plugins/api.c +++ b/plugins/api.c @@ -42,10 +42,10 @@ #include "tcg/tcg.h" #include "exec/exec-all.h" #include "exec/gdbstub.h" -#include "exec/ram_addr.h" #include "disas/disas.h" #include "plugin.h" #ifndef CONFIG_USER_ONLY +#include "exec/ram_addr.h" #include "qemu/plugin-memory.h" #include "hw/boards.h" #else