On 10/5/25 08:43, Guenter Roeck wrote:
On Sat, Oct 04, 2025 at 05:14:45PM -0700, Guenter Roeck wrote:
Hi,
On Sat, May 03, 2025 at 02:27:08PM -0700, Richard Henderson wrote:
This should have been done before removing TARGET_ALIGNED_ONLY,
as we did for hppa and alpha.
Fixes: 8244189419f9 ("target/sh4: Remove TARGET_ALIGNED_ONLY")
Signed-off-by: Richard Henderson <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
When trying to run sh4 emulations with qemu 10.1.0, I get quite interesting
error messages. Bisect points to this patch, and reverting it fixes the
problem.
Actually, it is worse: Commit a4027ed7d4 ("target: Use
cpu_pointer_wrap_notreached
for strict align targets") claims that "Alpha, HPPA, and SH4 always use aligned
addresses" which just is not true. At least sh4 generates an unaligned trap and
handles the problem in the trap handler. Result is
ERROR:../accel/tcg/cputlb.c:2944:cpu_pointer_wrap_notreached: code should not
be reached
Bail out! ERROR:../accel/tcg/cputlb.c:2944:cpu_pointer_wrap_notreached: code
should not be reached
Yes, I posted a fix for this one yesterday.
https://patchew.org/QEMU/[email protected]/
r~