diff options
author | Alistair Francis <alistair.francis@wdc.com> | 2021-08-30 15:34:36 +1000 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2021-09-21 07:56:49 +1000 |
commit | a714b8aa029c2a6cc0b99a798f4f8b6d4282e711 (patch) | |
tree | 90c3c011b203b8e9f7d05b473c3b6101c0f2f209 /include/hw/intc | |
parent | 0f0b70eeecdd4e0f29efe28a7ffec01cbe5c43bf (diff) | |
download | qemu-a714b8aa029c2a6cc0b99a798f4f8b6d4282e711.zip qemu-a714b8aa029c2a6cc0b99a798f4f8b6d4282e711.tar.gz qemu-a714b8aa029c2a6cc0b99a798f4f8b6d4282e711.tar.bz2 |
hw/intc: sifive_clint: Use RISC-V CPU GPIO lines
Instead of using riscv_cpu_update_mip() let's instead use the new RISC-V
CPU GPIO lines to set the timer and soft MIP bits.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: LIU Zhiwei <zhiwei_liu@c-sky.com>
Message-id: 946e1ef5e268b24084c7ddad84c146de62a56736.1630301632.git.alistair.francis@wdc.com
Diffstat (limited to 'include/hw/intc')
-rw-r--r-- | include/hw/intc/sifive_clint.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/intc/sifive_clint.h b/include/hw/intc/sifive_clint.h index a30be0f..921b156 100644 --- a/include/hw/intc/sifive_clint.h +++ b/include/hw/intc/sifive_clint.h @@ -40,6 +40,8 @@ typedef struct SiFiveCLINTState { uint32_t time_base; uint32_t aperture_size; uint32_t timebase_freq; + qemu_irq *timer_irqs; + qemu_irq *soft_irqs; } SiFiveCLINTState; DeviceState *sifive_clint_create(hwaddr addr, hwaddr size, |