]> git.proxmox.com Git - mirror_qemu.git/commit
target/hppa: Generate illegal instruction exception for 64-bit instructions
authorHelge Deller <deller@gmx.de>
Wed, 28 Sep 2022 18:49:13 +0000 (20:49 +0200)
committerHelge Deller <deller@gmx.de>
Mon, 19 Dec 2022 22:13:59 +0000 (23:13 +0100)
commit0786a3b6051ed081ddaa8dfe1c1e13ce0cfabc4a
tree698a985291e93e110d060af2b1ac56511fa163b8
parentc15dc499cc22f4a71639e42e36051e118761c25f
target/hppa: Generate illegal instruction exception for 64-bit instructions

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 <deller@gmx.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
target/hppa/translate.c