mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
sim: bpf: use CURRENT_TARGET_BYTE_ORDER
Code should be going through this macro rather than accessing the underlying value directly.
This commit is contained in:
@ -121,7 +121,7 @@ cat <<EOF
|
||||
|
||||
UDI insn = GETIMEMUDI (current_cpu, vpc);
|
||||
|
||||
if (current_target_byte_order == BFD_ENDIAN_BIG)
|
||||
if (CURRENT_TARGET_BYTE_ORDER == BFD_ENDIAN_BIG)
|
||||
{
|
||||
/* eBPF instructions are little-endian, but GETIMEMUDI reads according
|
||||
to target byte order. Swap to little-endian. */
|
||||
|
Reference in New Issue
Block a user