From: Philippe Mathieu-Daudé Date: Mon, 13 Nov 2023 12:28:38 +0000 (+0100) Subject: sysemu/xen-mapcache: Check Xen availability with CONFIG_XEN_IS_POSSIBLE X-Git-Tag: v9.0.0-rc0~25^2~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3e5e5d479eaa1e3ea8535db3ee44eec147f2f1aa;p=thirdparty%2Fqemu.git sysemu/xen-mapcache: Check Xen availability with CONFIG_XEN_IS_POSSIBLE "sysemu/xen.h" defines CONFIG_XEN_IS_POSSIBLE as a target-agnostic version of CONFIG_XEN accelerator. Use it in order to use "sysemu/xen-mapcache.h" in target-agnostic files. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: David Woodhouse Message-Id: <20231114143816.71079-4-philmd@linaro.org> --- diff --git a/include/sysemu/xen-mapcache.h b/include/sysemu/xen-mapcache.h index c8e7c2f6cf5..10c2e3082a2 100644 --- a/include/sysemu/xen-mapcache.h +++ b/include/sysemu/xen-mapcache.h @@ -10,10 +10,11 @@ #define XEN_MAPCACHE_H #include "exec/cpu-common.h" +#include "sysemu/xen.h" typedef hwaddr (*phys_offset_to_gaddr_t)(hwaddr phys_offset, ram_addr_t size); -#ifdef CONFIG_XEN +#ifdef CONFIG_XEN_IS_POSSIBLE void xen_map_cache_init(phys_offset_to_gaddr_t f, void *opaque);