Browse Source

system: Allow restricting the legacy MO_TE* 'native-endian' definitions

Guard the native endian definitions 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-20-philmd@linaro.org>
pull/316/head
Philippe Mathieu-Daudé 8 months ago
parent
commit
a9c39c7083
  1. 4
      include/exec/memop.h

4
include/exec/memop.h

@ -36,11 +36,13 @@ typedef enum MemOp {
MO_BE = MO_BSWAP,
#endif
#ifdef COMPILING_PER_TARGET
#ifndef TARGET_NOT_USING_LEGACY_NATIVE_ENDIAN_API
#if TARGET_BIG_ENDIAN
MO_TE = MO_BE,
#else
MO_TE = MO_LE,
#endif
#endif
#endif
/*
@ -150,6 +152,7 @@ typedef enum MemOp {
MO_BESQ = MO_BE | MO_SQ,
#ifdef COMPILING_PER_TARGET
#ifndef TARGET_NOT_USING_LEGACY_NATIVE_ENDIAN_API
MO_TEUW = MO_TE | MO_UW,
MO_TEUL = MO_TE | MO_UL,
MO_TEUQ = MO_TE | MO_UQ,
@ -157,6 +160,7 @@ typedef enum MemOp {
MO_TESW = MO_TE | MO_SW,
MO_TESL = MO_TE | MO_SL,
MO_TESQ = MO_TE | MO_SQ,
#endif
#endif
MO_SSIZE = MO_SIZE | MO_SIGN,

Loading…
Cancel
Save