mirror of
https://github.com/qemu/qemu.git
synced 2026-05-19 22:58:03 +00:00
system: Allow restricting legacy address_space_ldst() native-endian API
Guard the native endian APIs we want to remove by surrounding them with TARGET_NOT_USING_LEGACY_NATIVE_ENDIAN_API #ifdef'ry. Once a target gets cleaned we'll set the definition in the target config, then the target won't be able to use the legacy API anymore. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-ID: <20260109165058.59144-16-philmd@linaro.org>
This commit is contained in:
@@ -105,9 +105,11 @@ void glue(address_space_stb, SUFFIX)(ARG1_DECL, hwaddr addr, uint8_t val,
|
||||
attrs, result);
|
||||
}
|
||||
|
||||
#ifndef TARGET_NOT_USING_LEGACY_NATIVE_ENDIAN_API
|
||||
#define ENDIANNESS
|
||||
#define MO_ENDIAN (target_big_endian() ? MO_BE : MO_LE)
|
||||
#include "memory_ldst_endian.c.inc"
|
||||
#endif /* TARGET_NOT_USING_LEGACY_NATIVE_ENDIAN_API */
|
||||
|
||||
#define ENDIANNESS _le
|
||||
#define MO_ENDIAN MO_LE
|
||||
|
||||
Reference in New Issue
Block a user