mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 14:53:54 -06:00
hw/riscv/sifive_plic: Use gpios instead of irqs
Instead of creating the interrupt in lines with qemu_allocate_irq() use qdev_init_gpio_in() as this gives us the ability to use the qdev*gpio*() helpers later on. Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Suggested-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Michael Clark <mjc@sifive.com>
This commit is contained in:
parent
651cd8b7e1
commit
647a70a10f
5 changed files with 9 additions and 12 deletions
|
@ -56,7 +56,6 @@ typedef struct SiFivePLICState {
|
|||
uint32_t *claimed;
|
||||
uint32_t *enable;
|
||||
QemuMutex lock;
|
||||
qemu_irq *irqs;
|
||||
|
||||
/* config */
|
||||
char *hart_config;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue