diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-11-01 18:49:48 +0545 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-12-21 00:00:01 -0500 |
commit | ef7878a2865c4f8d084717c7d959704d8f7132d2 (patch) | |
tree | 7818806bac95e8757d3bbf8b7c0c521c04744c83 /sim/bpf/cpu.h | |
parent | 53891d9a7ccc2a94f45711dbbb8c3519eb7bcee1 (diff) | |
download | gdb-ef7878a2865c4f8d084717c7d959704d8f7132d2.zip gdb-ef7878a2865c4f8d084717c7d959704d8f7132d2.tar.gz gdb-ef7878a2865c4f8d084717c7d959704d8f7132d2.tar.bz2 |
sim: bpf: invert sim_cpu storage
The cpu.h change is in generated cgen code, but that has been sent
upstream too, so the next regen should include it automatically.
Diffstat (limited to 'sim/bpf/cpu.h')
-rw-r--r-- | sim/bpf/cpu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/bpf/cpu.h b/sim/bpf/cpu.h index 5dd42de..fb5344e 100644 --- a/sim/bpf/cpu.h +++ b/sim/bpf/cpu.h @@ -54,7 +54,7 @@ do { \ CPU (h_pc) = (x);\ ;} while (0) } hardware; -#define CPU_CGEN_HW(cpu) (& (cpu)->cpu_data.hardware) +#define CPU_CGEN_HW(cpu) (& BPF_SIM_CPU (cpu)->cpu_data.hardware) } BPFBF_CPU_DATA; /* Cover fns for register access. */ |