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:
Lioncash 2018-02-20 08:29:55 -05:00
parent 91b4e76fef
commit a268815478
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7
2 changed files with 14 additions and 0 deletions

View file

@ -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
View 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