From ef7878a2865c4f8d084717c7d959704d8f7132d2 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 1 Nov 2022 18:49:48 +0545 Subject: 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. --- sim/bpf/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sim/bpf/cpu.h') 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. */ -- cgit v1.1