On 9/28/22 11:49, Helge Deller wrote:
Qemu currently emulates a 32-bit CPU only, and crashes with this error
when it faces a 64-bit load (e.g. "ldd 0(r26),r0") or a 64-bit store
(e.g. "std r26,0(r26)") instruction in the guest:
ERROR:../qemu/tcg/tcg-op.c:2822:tcg_canonicalize_memop: code should not be
reached
Add checks for 64-bit sizes and generate an illegal instruction
exception if necessary.
Signed-off-by: Helge Deller <del...@gmx.de>
---
v2: Move checks to trans_ld() and trans_st() as suggested by Richard
Reviewed-by: Richard Henderson <richard.hender...@linaro.org>
r~