mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
target/loongarch: Move some function definition to kvm directory
Move function definition specified with kvm to the corresponding directory. Also remove header file "cpu.h" including outside of macro QEMU_KVM_LOONGARCH_H. Signed-off-by: Bibo Mao <maobibo@loongson.cn> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
@@ -46,6 +46,7 @@
|
||||
#include "hw/block/flash.h"
|
||||
#include "hw/virtio/virtio-iommu.h"
|
||||
#include "qemu/error-report.h"
|
||||
#include "kvm/kvm_loongarch.h"
|
||||
|
||||
static void virt_get_veiointc(Object *obj, Visitor *v, const char *name,
|
||||
void *opaque, Error **errp)
|
||||
|
||||
@@ -496,13 +496,4 @@ static inline void set_pc(CPULoongArchState *env, uint64_t value)
|
||||
|
||||
void loongarch_cpu_post_init(Object *obj);
|
||||
|
||||
#ifdef CONFIG_KVM
|
||||
void kvm_loongarch_cpu_post_init(LoongArchCPU *cpu);
|
||||
#else
|
||||
static inline void kvm_loongarch_cpu_post_init(LoongArchCPU *cpu)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
void kvm_loongarch_init_irq_routing(void);
|
||||
|
||||
#endif /* LOONGARCH_CPU_H */
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
* Copyright (c) 2023 Loongson Technology Corporation Limited
|
||||
*/
|
||||
|
||||
#include "cpu.h"
|
||||
|
||||
#ifndef QEMU_KVM_LOONGARCH_H
|
||||
#define QEMU_KVM_LOONGARCH_H
|
||||
|
||||
void kvm_loongarch_cpu_post_init(LoongArchCPU *cpu);
|
||||
void kvm_loongarch_init_irq_routing(void);
|
||||
int kvm_loongarch_set_interrupt(LoongArchCPU *cpu, int irq, int level);
|
||||
void kvm_arch_reset_vcpu(CPUState *cs);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user