mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 19:18:06 +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
2 changed files with 14 additions and 0 deletions
|
@ -22,6 +22,7 @@
|
|||
#include "uc_priv.h"
|
||||
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
#include "hw/xen/xen.h"
|
||||
|
||||
ram_addr_t qemu_ram_alloc_from_ptr(ram_addr_t size, void *host,
|
||||
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