]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/openrisc: Mark devices as big-endian
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 6 Nov 2024 17:42:06 +0000 (17:42 +0000)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 31 Dec 2024 20:21:34 +0000 (21:21 +0100)
commite72eee9684b5eca48815e762ad097101c487514f
tree9c3a5c79a28284a6f312a8266e8f2196205d7f00
parent625a975f67314a91084e59e2320c910b4129cbaf
hw/openrisc: Mark devices as big-endian

The openrisc little-endian control is in a control register:
SR[LEE] (which we do not implement at present).

These devices are only used by the OpenRISC target, which is
only built as big-endian. Therefore the DEVICE_NATIVE_ENDIAN
definition expand to DEVICE_BIG_ENDIAN (besides, the
DEVICE_LITTLE_ENDIAN case isn't tested). Simplify directly
using DEVICE_BIG_ENDIAN.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Thomas Huth <huth@tuxfamily.org>
Message-Id: <20241106184612.71897-5-philmd@linaro.org>
hw/openrisc/openrisc_sim.c
hw/openrisc/virt.c