aboutsummaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorLIU Zhiwei <zhiwei_liu@linux.alibaba.com>2022-10-13 14:29:43 +0800
committerAlistair Francis <alistair.francis@wdc.com>2023-01-06 10:42:55 +1000
commit2c9d747121aa9f8f0494b9e3136a22a1c3a8b2a3 (patch)
tree8cc47a138ce0357f917299a47c199dddeb2036e8 /configs
parentfb3f3730e405e2451dffc03c572037c2e0bd44c0 (diff)
downloadqemu-2c9d747121aa9f8f0494b9e3136a22a1c3a8b2a3.zip
qemu-2c9d747121aa9f8f0494b9e3136a22a1c3a8b2a3.tar.gz
qemu-2c9d747121aa9f8f0494b9e3136a22a1c3a8b2a3.tar.bz2
target/riscv: Add itrigger support when icount is not enabled
When icount is not enabled, there is no API in QEMU that can get the guest instruction number. Translate the guest code in a way that each TB only has one instruction. After executing the instruction, decrease the count by 1 until it reaches 0 where the itrigger fires. Note that only when priviledge matches the itrigger configuration, the count will decrease. Signed-off-by: LIU Zhiwei <zhiwei_liu@linux.alibaba.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <20221013062946.7530-2-zhiwei_liu@linux.alibaba.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'configs')
0 files changed, 0 insertions, 0 deletions