On Wed, Jun 9, 2021 at 5:57 PM Paolo Bonzini <pbonzini@redhat.com> wrote:
On 09/06/21 01:48, Alistair Francis wrote:
Add support for the Ibex timer. This is used with the RISC-V
mtime/mtimecmp similar to the SiFive CLINT.
We currently don't support changing the prescale or the timervalue.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Any chance this could have a qtest? It would also be nice if the CPU
Yep, do you have a good example of what the qtest should look like?
had qemu_irqs for MEIP/MTIP/SEIP (possibly MSIP too but that one is
bidirectional), so that instead of riscv_cpu_update_mip you can just
connect to a GPIO pin of the CPU and do qemu_set_irq. It could also be
used by the qtests via irq_intercept_in.
Yeah the riscv_cpu_update_mip() is not ideal. As it is what we
currently also use for the CLINT I don't want to fix it up here. In
the future I'll work on changing riscv_cpu_update_mip in all the
RISC-V timers to use GPIO lines instead.