aboutsummaryrefslogtreecommitdiff
path: root/sim/pru/pru.h
diff options
context:
space:
mode:
Diffstat (limited to 'sim/pru/pru.h')
-rw-r--r--sim/pru/pru.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/pru/pru.h b/sim/pru/pru.h
index df61538..f6b633b 100644
--- a/sim/pru/pru.h
+++ b/sim/pru/pru.h
@@ -41,7 +41,7 @@
#define XFRID_SCRATCH_BANK_PEER 14
#define XFRID_MAX 255
-#define CPU (cpu->pru_cpu)
+#define CPU (*pru_cpu)
#define PC (CPU.pc)
#define PC_byteaddr ((PC << 2) | PC_ADDR_SPACE_MARKER)