]> git.proxmox.com Git - mirror_qemu.git/commit - hw/intc/riscv_aclint.c
hw/riscv: Provide rdtime callback for TCG in CLINT emulation
authorAnup Patel <anup.patel@wdc.com>
Sun, 2 Feb 2020 13:42:17 +0000 (19:12 +0530)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 27 Feb 2020 21:46:37 +0000 (13:46 -0800)
commit5f3616ccceb5d5c49f99838c78498e581fb42fc5
treed44d99603f2329c984d4d9d2ba3ffccab382b50a
parentc695724868ce4049fd79c5a509880dbdf171e744
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>
hw/riscv/sifive_clint.c
hw/riscv/sifive_e.c
hw/riscv/sifive_u.c
hw/riscv/spike.c
hw/riscv/virt.c
include/hw/riscv/sifive_clint.h