diff options
-rw-r--r-- | sim/bpf/ChangeLog | 7 | ||||
-rw-r--r-- | sim/bpf/bpf.c | 4 | ||||
-rw-r--r-- | sim/bpf/mloop.in | 2 |
3 files changed, 10 insertions, 3 deletions
diff --git a/sim/bpf/ChangeLog b/sim/bpf/ChangeLog index 42143db..f3deab5 100644 --- a/sim/bpf/ChangeLog +++ b/sim/bpf/ChangeLog @@ -1,5 +1,12 @@ 2021-06-09 Mike Frysinger <vapier@gentoo.org> + * 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 <vapier@gentoo.org> + * sim-if.c (sim_open): Delete cgen_init call. 2021-05-17 Mike Frysinger <vapier@gentoo.org> diff --git a/sim/bpf/bpf.c b/sim/bpf/bpf.c index c626781..f9cdb82 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 e666835..91f0c44 100644 --- a/sim/bpf/mloop.in +++ b/sim/bpf/mloop.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. */ |