target/xtensa: Remove tswap() calls in semihosting simcall() helper
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 5 Dec 2024 23:21:14 +0000 (00:21 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 20 Dec 2024 16:44:57 +0000 (17:44 +0100)
commitb82f70bb9dddfd6d1315a1c0a710c22dd5089a31
tree5f5db5fdf9dea2d805ec2c9b3b3248c3391d5cee
parenta9ca97ea9e582a77629db9af61603b5fddc9ba2c
target/xtensa: Remove tswap() calls in semihosting simcall() helper

In preparation of heterogeneous emulation where cores with
different endianness can run concurrently, replace the pair
of cpu_memory_rw_debug() + tswap() calls by put/get_user_u32()
ones, which still do the same under the hood, but simplify the
code maintenance (having less sites to do endianness code
conversion).

Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <6e1e69d8-a9f3-4a30-83c8-84c5647578d5@linaro.org>
target/xtensa/xtensa-semi.c