mirror of https://github.com/xemu-project/xemu.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é <philmd@linaro.org> Reviewed-by: David Woodhouse <dwmw@amazon.co.uk> Message-Id: <20231114143816.71079-4-philmd@linaro.org>
This commit is contained in:
parent
261bbc3b30
commit
3e5e5d479e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue