hw/riscv: Move sifive_plic model to hw/intc
This is an effort to clean up the hw/riscv directory. Ideally it should only contain the RISC-V SoC / machine codes plus generic codes. Let's move sifive_plic model to hw/intc directory. Signed-off-by: Bin Meng <bin.meng@windriver.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <1599129623-68957-7-git-send-email-bmeng.cn@gmail.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
406fafd5d0
commit
84fcf3c151
@ -70,3 +70,6 @@ config LOONGSON_LIOINTC
|
||||
|
||||
config SIFIVE_CLINT
|
||||
bool
|
||||
|
||||
config SIFIVE_PLIC
|
||||
bool
|
||||
|
@ -48,6 +48,7 @@ specific_ss.add(when: 'CONFIG_S390_FLIC', if_true: files('s390_flic.c'))
|
||||
specific_ss.add(when: 'CONFIG_S390_FLIC_KVM', if_true: files('s390_flic_kvm.c'))
|
||||
specific_ss.add(when: 'CONFIG_SH4', if_true: files('sh_intc.c'))
|
||||
specific_ss.add(when: 'CONFIG_SIFIVE_CLINT', if_true: files('sifive_clint.c'))
|
||||
specific_ss.add(when: 'CONFIG_SIFIVE_PLIC', if_true: files('sifive_plic.c'))
|
||||
specific_ss.add(when: 'CONFIG_XICS', if_true: files('xics.c'))
|
||||
specific_ss.add(when: 'CONFIG_XICS_KVM', if_true: files('xics_kvm.c'))
|
||||
specific_ss.add(when: 'CONFIG_XICS_SPAPR', if_true: files('xics_spapr.c'))
|
||||
|
@ -27,9 +27,9 @@
|
||||
#include "hw/pci/msi.h"
|
||||
#include "hw/boards.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
#include "hw/intc/sifive_plic.h"
|
||||
#include "target/riscv/cpu.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "hw/riscv/sifive_plic.h"
|
||||
|
||||
#define RISCV_DEBUG_PLIC 0
|
||||
|
@ -17,6 +17,7 @@ config SIFIVE_E
|
||||
select SIFIVE
|
||||
select SIFIVE_CLINT
|
||||
select SIFIVE_GPIO
|
||||
select SIFIVE_PLIC
|
||||
select SIFIVE_E_PRCI
|
||||
select UNIMP
|
||||
|
||||
@ -28,6 +29,7 @@ config SIFIVE_U
|
||||
select SIFIVE_CLINT
|
||||
select SIFIVE_GPIO
|
||||
select SIFIVE_PDMA
|
||||
select SIFIVE_PLIC
|
||||
select SIFIVE_U_OTP
|
||||
select SIFIVE_U_PRCI
|
||||
select UNIMP
|
||||
@ -38,6 +40,7 @@ config SPIKE
|
||||
select HTIF
|
||||
select SIFIVE
|
||||
select SIFIVE_CLINT
|
||||
select SIFIVE_PLIC
|
||||
|
||||
config OPENTITAN
|
||||
bool
|
||||
@ -58,6 +61,7 @@ config RISCV_VIRT
|
||||
select PFLASH_CFI01
|
||||
select SIFIVE
|
||||
select SIFIVE_CLINT
|
||||
select SIFIVE_PLIC
|
||||
|
||||
config MICROCHIP_PFSOC
|
||||
bool
|
||||
@ -67,4 +71,5 @@ config MICROCHIP_PFSOC
|
||||
select UNIMP
|
||||
select MCHP_PFSOC_MMUART
|
||||
select SIFIVE_PDMA
|
||||
select SIFIVE_PLIC
|
||||
select CADENCE_SDHCI
|
||||
|
@ -4,7 +4,6 @@ riscv_ss.add(files('numa.c'))
|
||||
riscv_ss.add(when: 'CONFIG_HART', if_true: files('riscv_hart.c'))
|
||||
riscv_ss.add(when: 'CONFIG_OPENTITAN', if_true: files('opentitan.c'))
|
||||
riscv_ss.add(when: 'CONFIG_RISCV_VIRT', if_true: files('virt.c'))
|
||||
riscv_ss.add(when: 'CONFIG_SIFIVE', if_true: files('sifive_plic.c'))
|
||||
riscv_ss.add(when: 'CONFIG_SIFIVE', if_true: files('sifive_test.c'))
|
||||
riscv_ss.add(when: 'CONFIG_SIFIVE', if_true: files('sifive_uart.c'))
|
||||
riscv_ss.add(when: 'CONFIG_SIFIVE_E', if_true: files('sifive_e.c'))
|
||||
|
@ -48,9 +48,9 @@
|
||||
#include "hw/misc/unimp.h"
|
||||
#include "hw/riscv/boot.h"
|
||||
#include "hw/riscv/riscv_hart.h"
|
||||
#include "hw/riscv/sifive_plic.h"
|
||||
#include "hw/riscv/microchip_pfsoc.h"
|
||||
#include "hw/intc/sifive_clint.h"
|
||||
#include "hw/intc/sifive_plic.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
|
||||
/*
|
||||
|
@ -39,11 +39,11 @@
|
||||
#include "hw/misc/unimp.h"
|
||||
#include "target/riscv/cpu.h"
|
||||
#include "hw/riscv/riscv_hart.h"
|
||||
#include "hw/riscv/sifive_plic.h"
|
||||
#include "hw/riscv/sifive_uart.h"
|
||||
#include "hw/riscv/sifive_e.h"
|
||||
#include "hw/riscv/boot.h"
|
||||
#include "hw/intc/sifive_clint.h"
|
||||
#include "hw/intc/sifive_plic.h"
|
||||
#include "hw/misc/sifive_e_prci.h"
|
||||
#include "chardev/char.h"
|
||||
#include "sysemu/arch_init.h"
|
||||
|
@ -46,11 +46,11 @@
|
||||
#include "hw/misc/unimp.h"
|
||||
#include "target/riscv/cpu.h"
|
||||
#include "hw/riscv/riscv_hart.h"
|
||||
#include "hw/riscv/sifive_plic.h"
|
||||
#include "hw/riscv/sifive_uart.h"
|
||||
#include "hw/riscv/sifive_u.h"
|
||||
#include "hw/riscv/boot.h"
|
||||
#include "hw/intc/sifive_clint.h"
|
||||
#include "hw/intc/sifive_plic.h"
|
||||
#include "chardev/char.h"
|
||||
#include "net/eth.h"
|
||||
#include "sysemu/arch_init.h"
|
||||
|
@ -30,12 +30,12 @@
|
||||
#include "hw/char/serial.h"
|
||||
#include "target/riscv/cpu.h"
|
||||
#include "hw/riscv/riscv_hart.h"
|
||||
#include "hw/riscv/sifive_plic.h"
|
||||
#include "hw/riscv/sifive_test.h"
|
||||
#include "hw/riscv/virt.h"
|
||||
#include "hw/riscv/boot.h"
|
||||
#include "hw/riscv/numa.h"
|
||||
#include "hw/intc/sifive_clint.h"
|
||||
#include "hw/intc/sifive_plic.h"
|
||||
#include "chardev/char.h"
|
||||
#include "sysemu/arch_init.h"
|
||||
#include "sysemu/device_tree.h"
|
||||
|
Loading…
Reference in New Issue
Block a user