qemu/target/riscv/insn_trans
LIU Zhiwei 666e6bbf85 target/riscv: Fix itrigger when icount is used
When I boot a ubuntu image, QEMU output a "Bad icount read" message and exit.
The reason is that when execute helper_mret or helper_sret, it will
cause a call to icount_get_raw_locked (), which needs set can_do_io flag
on cpustate.

Thus we setting this flag when execute these two instructions.

Signed-off-by: LIU Zhiwei <zhiwei_liu@linux.alibaba.com>
Reviewed-by: Weiwei Li <liweiwei@iscas.ac.cn>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20230324064011.976-1-zhiwei_liu@linux.alibaba.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
(cherry picked from commit df3ac6da47)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2023-05-18 21:09:59 +03:00
..
trans_privileged.c.inc target/riscv: Fix itrigger when icount is used 2023-05-18 21:09:59 +03:00
trans_rva.c.inc
trans_rvb.c.inc
trans_rvd.c.inc
trans_rvf.c.inc
trans_rvh.c.inc
trans_rvi.c.inc target/riscv: Add Zihintpause support 2022-09-07 09:18:33 +02:00
trans_rvk.c.inc
trans_rvm.c.inc
trans_rvv.c.inc target/riscv: rvv-1.0: vf[w]redsum distinguish between ordered/unordered 2022-09-27 11:23:57 +10:00
trans_rvzfh.c.inc
trans_svinval.c.inc
trans_xventanacondops.c.inc