On 2025-09-06 07:18, Richard Henderson wrote:
The tb_flush within write_misa was incorrect. It assumed
that we could adjust the ISA of the current processor and
discard all TB and all would be well. But MISA is per vcpu,
so globally flushing TB does not mean that the TB matches
the MISA of any given vcpu.
By recording misa in the tb state, we ensure that the code
generated matches the vcpu.
Signed-off-by: Richard Henderson <richard.hender...@linaro.org>
---
target/riscv/csr.c | 3 ---
target/riscv/tcg/tcg-cpu.c | 3 ++-
2 files changed, 2 insertions(+), 4 deletions(-)
Reviewed-by: Pierrick Bouvier <pierrick.bouv...@linaro.org>