mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-09-03 06:31:15 +00:00
include: Add stubbed xen function
Will allow us to not comment out code all the time for xen checks (ideally)
This commit is contained in:
parent
91b4e76fef
commit
a268815478
|
@ -22,6 +22,7 @@
|
||||||
#include "uc_priv.h"
|
#include "uc_priv.h"
|
||||||
|
|
||||||
#ifndef CONFIG_USER_ONLY
|
#ifndef CONFIG_USER_ONLY
|
||||||
|
#include "hw/xen/xen.h"
|
||||||
|
|
||||||
ram_addr_t qemu_ram_alloc_from_ptr(ram_addr_t size, void *host,
|
ram_addr_t qemu_ram_alloc_from_ptr(ram_addr_t size, void *host,
|
||||||
MemoryRegion *mr, Error **errp);
|
MemoryRegion *mr, Error **errp);
|
||||||
|
|
13
qemu/include/hw/xen/xen.h
Normal file
13
qemu/include/hw/xen/xen.h
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
#ifndef QEMU_HW_XEN_H
|
||||||
|
#define QEMU_HW_XEN_H
|
||||||
|
|
||||||
|
#include "qemu-common.h"
|
||||||
|
#include "exec/cpu-common.h"
|
||||||
|
|
||||||
|
static inline bool xen_enabled(void)
|
||||||
|
{
|
||||||
|
// Unicorn: Always return false
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in a new issue