08.05.2023 01:22, Alistair Francis wrote:
On Fri, May 5, 2023 at 11:04 AM Alistair Francis <alistai...@gmail.com> wrote:

From: LIU Zhiwei <zhiwei_...@linux.alibaba.com>

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_...@linux.alibaba.com>
Reviewed-by: Weiwei Li <liwei...@iscas.ac.cn>
Acked-by: Alistair Francis <alistair.fran...@wdc.com>
Message-Id: <20230324064011.976-1-zhiwei_...@linux.alibaba.com>
Signed-off-by: Alistair Francis <alistair.fran...@wdc.com>

This is also a good candidate for 8.0.1

Queued for 8.0 (and for 7.2 if it will ever be).  Thanks!

/mjt

Reply via email to