tcg/arm: Fix SIGILL in tcg_out_qemu_st_direct
authorJoseph Burt <caseorum@gmail.com>
Sun, 21 Jan 2024 21:14:39 +0000 (21:14 +0000)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 23 Jan 2024 03:32:10 +0000 (13:32 +1000)
commit9f6523e8e4689cafdbed7c10b7cf7c775b5a607b
tree14952b251f2af1ddf37a838904727544417369bd
parent0ea731db5a0edb5b1b9038e1c0059053e20ce5d3
tcg/arm: Fix SIGILL in tcg_out_qemu_st_direct

When tcg_out_qemu_st_{index,direct} were merged, the direct case for
MO_64 was omitted, causing qemu_st_i64 to be encoded as 0xffffffff due
to underflow when adding h.base and h.index.

Fixes: 1df6d611bdc2 ("tcg/arm: Introduce HostAddress")
Signed-off-by: Joseph Burt <caseorum@gmail.com>
Message-Id: <20240121211439.100829-1-caseorum@gmail.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/arm/tcg-target.c.inc