mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
hw/xen/arch_hvm: Unify x86 and ARM variants
As each target declares the same prototypes, we can use a single header, removing the TARGET_XXX uses. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org> Message-Id: <20250513171737.74386-1-philmd@linaro.org>
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
#ifndef HW_XEN_ARCH_ARM_HVM_H
|
||||
#define HW_XEN_ARCH_ARM_HVM_H
|
||||
|
||||
#include <xen/hvm/ioreq.h>
|
||||
void arch_handle_ioreq(XenIOState *state, ioreq_t *req);
|
||||
void arch_xen_set_memory(XenIOState *state,
|
||||
MemoryRegionSection *section,
|
||||
bool add);
|
||||
#endif
|
||||
@@ -1,11 +0,0 @@
|
||||
#ifndef HW_XEN_ARCH_I386_HVM_H
|
||||
#define HW_XEN_ARCH_I386_HVM_H
|
||||
|
||||
#include <xen/hvm/ioreq.h>
|
||||
#include "hw/xen/xen-hvm-common.h"
|
||||
|
||||
void arch_handle_ioreq(XenIOState *state, ioreq_t *req);
|
||||
void arch_xen_set_memory(XenIOState *state,
|
||||
MemoryRegionSection *section,
|
||||
bool add);
|
||||
#endif
|
||||
@@ -1,5 +1,11 @@
|
||||
#if defined(TARGET_I386) || defined(TARGET_X86_64)
|
||||
#include "hw/i386/xen_arch_hvm.h"
|
||||
#elif defined(TARGET_ARM) || defined(TARGET_AARCH64)
|
||||
#include "hw/arm/xen_arch_hvm.h"
|
||||
#ifndef HW_XEN_ARCH_HVM_H
|
||||
#define HW_XEN_ARCH_HVM_H
|
||||
|
||||
#include <xen/hvm/ioreq.h>
|
||||
#include "hw/xen/xen-hvm-common.h"
|
||||
|
||||
void arch_handle_ioreq(XenIOState *state, ioreq_t *req);
|
||||
void arch_xen_set_memory(XenIOState *state,
|
||||
MemoryRegionSection *section,
|
||||
bool add);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user