hw/riscv: Provide rdtime callback for TCG in CLINT emulation
This patch extends CLINT emulation to provide rdtime callback for TCG. This rdtime callback will be called wheneven TIME CSRs are read in privileged modes. Signed-off-by:Anup Patel <anup.patel@wdc.com> Reviewed-by:
Alistair Francis <alistair.francis@wdc.com> Signed-off-by:
Palmer Dabbelt <palmerdabbelt@google.com>
Showing
- hw/riscv/sifive_clint.c 5 additions, 1 deletionhw/riscv/sifive_clint.c
- hw/riscv/sifive_e.c 1 addition, 1 deletionhw/riscv/sifive_e.c
- hw/riscv/sifive_u.c 1 addition, 1 deletionhw/riscv/sifive_u.c
- hw/riscv/spike.c 6 additions, 3 deletionshw/riscv/spike.c
- hw/riscv/virt.c 1 addition, 1 deletionhw/riscv/virt.c
- include/hw/riscv/sifive_clint.h 2 additions, 1 deletioninclude/hw/riscv/sifive_clint.h
Please register or sign in to comment