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:
parent
ca18b336e1
commit
de3c9f552d
3 changed files with 3 additions and 11 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue