diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-06-05 22:48:23 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-06-09 18:23:48 -0400 |
commit | eee649922f026dd8857abb0476188e0508efcf8b (patch) | |
tree | 72700d821f552517ad772b4edb5d970889cb62b2 /sim/bpf/bpf.c | |
parent | 906192d7859f9e768fc73f330e10d3b3a4ddaba3 (diff) | |
download | gdb-eee649922f026dd8857abb0476188e0508efcf8b.zip gdb-eee649922f026dd8857abb0476188e0508efcf8b.tar.gz gdb-eee649922f026dd8857abb0476188e0508efcf8b.tar.bz2 |
sim: bpf: use CURRENT_TARGET_BYTE_ORDER
Code should be going through this macro rather than accessing the
underlying value directly.
Diffstat (limited to 'sim/bpf/bpf.c')
-rw-r--r-- | sim/bpf/bpf.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |