From: Mike Frysinger Date: Sun, 6 Jun 2021 02:48:23 +0000 (-0400) Subject: sim: bpf: use CURRENT_TARGET_BYTE_ORDER X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eee649922f026dd8857abb0476188e0508efcf8b;p=binutils-gdb.git sim: bpf: use CURRENT_TARGET_BYTE_ORDER Code should be going through this macro rather than accessing the underlying value directly. --- diff --git a/sim/bpf/ChangeLog b/sim/bpf/ChangeLog index 42143db129d..f3deab5feeb 100644 --- a/sim/bpf/ChangeLog +++ b/sim/bpf/ChangeLog @@ -1,3 +1,10 @@ +2021-06-09 Mike Frysinger + + * bpf.c (bpf_engine_run_full): Change current_target_byte_order to + CURRENT_TARGET_BYTE_ORDER. + (bpf_engine_run_fast): Likewise. + * mloop.in: Likewise. + 2021-06-09 Mike Frysinger * sim-if.c (sim_open): Delete cgen_init call. diff --git a/sim/bpf/bpf.c b/sim/bpf/bpf.c index c626781adbf..f9cdb824d1a 100644 --- a/sim/bpf/bpf.c +++ b/sim/bpf/bpf.c @@ -222,7 +222,7 @@ bpfbf_prepare_run (SIM_CPU *cpu) void bpf_engine_run_full (SIM_CPU *cpu) { - if (current_target_byte_order == BFD_ENDIAN_LITTLE) + if (CURRENT_TARGET_BYTE_ORDER == BFD_ENDIAN_LITTLE) { if (!bpf_idesc_le) { @@ -253,7 +253,7 @@ bpf_engine_run_full (SIM_CPU *cpu) void bpf_engine_run_fast (SIM_CPU *cpu) { - if (current_target_byte_order == BFD_ENDIAN_LITTLE) + if (CURRENT_TARGET_BYTE_ORDER == BFD_ENDIAN_LITTLE) { if (!bpf_idesc_le) { diff --git a/sim/bpf/mloop.in b/sim/bpf/mloop.in index e666835ed1b..91f0c445eed 100644 --- a/sim/bpf/mloop.in +++ b/sim/bpf/mloop.in @@ -121,7 +121,7 @@ cat <