tcg/riscv: Support softmmu unaligned accesses
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 25 Apr 2023 11:06:48 +0000 (12:06 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 16 May 2023 22:21:39 +0000 (15:21 -0700)
commit933b331b306cd530a441d25245577f30ee0b938e
tree995f63e0a546b7bfcb58ed030aa0314b062458f9
parent12d7fead7c6232b3ddae963b113dcaf7e1cb1f28
tcg/riscv: Support softmmu unaligned accesses

The system is required to emulate unaligned accesses, even if the
hardware does not support it.  The resulting trap may or may not
be more efficient than the qemu slow path.  There are linux kernel
patches in flight to allow userspace to query hardware support;
we can re-evaluate whether to enable this by default after that.

In the meantime, softmmu now matches useronly, where we already
assumed that unaligned accesses are supported.

Reviewed-by: LIU Zhiwei <zhiwei_liu@linux.alibaba.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/riscv/tcg-target.c.inc