accel/tcg: Fix computing of is_write for MIPS
authorKele Huang <kele.hwang@gmail.com>
Fri, 2 Oct 2020 08:14:20 +0000 (16:14 +0800)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 8 Oct 2020 10:57:32 +0000 (05:57 -0500)
commit62475e9d007d83db4d0a6ccebcda8914f392e9c9
tree8fc09c1a671e1213b930f8b4d97f02d212569bd5
parentcae5d53b9e72d7a1e43cebeb36471d77a16c6e43
accel/tcg: Fix computing of is_write for MIPS

Detect all MIPS store instructions in cpu_signal_handler for all available
MIPS versions, and set is_write if encountering such store instructions.

This fixed the error while dealing with self-modified code for MIPS.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Kele Huang <kele.hwang@gmail.com>
Signed-off-by: Xu Zou <iwatchnima@gmail.com>
Message-Id: <20201002081420.10814-1-kele.hwang@gmail.com>
[rth: Use uintptr_t for pc to fix n32 build error.]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/user-exec.c