target/riscv: move KVM only files to kvm subdir
Move the files to a 'kvm' dir to promote more code separation between accelerators and making our lives easier supporting build options such as --disable-tcg. Rename kvm.c to kvm-cpu.c to keep it in line with its TCG counterpart. Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Reviewed-by: LIU Zhiwei <zhiwei_liu@linux.alibaba.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-ID: <20230925175709.35696-13-dbarboza@ventanamicro.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
d86c25b292
commit
fb80f33377
@ -32,7 +32,7 @@
|
||||
#include "target/riscv/cpu.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "sysemu/kvm.h"
|
||||
#include "kvm_riscv.h"
|
||||
#include "kvm/kvm_riscv.h"
|
||||
#include "migration/vmstate.h"
|
||||
|
||||
#define APLIC_MAX_IDC (1UL << 14)
|
||||
|
@ -35,7 +35,7 @@
|
||||
#include "hw/riscv/virt.h"
|
||||
#include "hw/riscv/boot.h"
|
||||
#include "hw/riscv/numa.h"
|
||||
#include "kvm_riscv.h"
|
||||
#include "kvm/kvm_riscv.h"
|
||||
#include "hw/intc/riscv_aclint.h"
|
||||
#include "hw/intc/riscv_aplic.h"
|
||||
#include "hw/intc/riscv_imsic.h"
|
||||
|
@ -33,7 +33,7 @@
|
||||
#include "fpu/softfloat-helpers.h"
|
||||
#include "sysemu/kvm.h"
|
||||
#include "sysemu/tcg.h"
|
||||
#include "kvm_riscv.h"
|
||||
#include "kvm/kvm_riscv.h"
|
||||
#include "tcg/tcg.h"
|
||||
|
||||
/* RISC-V CPU definitions */
|
||||
|
1
target/riscv/kvm/meson.build
Normal file
1
target/riscv/kvm/meson.build
Normal file
@ -0,0 +1 @@
|
||||
riscv_ss.add(when: 'CONFIG_KVM', if_true: files('kvm-cpu.c'))
|
@ -24,7 +24,6 @@ riscv_ss.add(files(
|
||||
'zce_helper.c',
|
||||
'vcrypto_helper.c'
|
||||
))
|
||||
riscv_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c'))
|
||||
|
||||
riscv_system_ss = ss.source_set()
|
||||
riscv_system_ss.add(files(
|
||||
@ -39,6 +38,7 @@ riscv_system_ss.add(files(
|
||||
))
|
||||
|
||||
subdir('tcg')
|
||||
subdir('kvm')
|
||||
|
||||
target_arch += {'riscv': riscv_ss}
|
||||
target_system_arch += {'riscv': riscv_system_ss}
|
||||
|
Loading…
Reference in New Issue
Block a user