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:
Mike Frysinger
2021-06-05 22:48:23 -04:00
parent 906192d785
commit eee649922f
3 changed files with 10 additions and 3 deletions

View File

@ -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. */