aboutsummaryrefslogtreecommitdiff
path: root/sim/aarch64/cpustate.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/aarch64/cpustate.c')
-rw-r--r--sim/aarch64/cpustate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/aarch64/cpustate.c b/sim/aarch64/cpustate.c
index 19f485e..50a83c9 100644
--- a/sim/aarch64/cpustate.c
+++ b/sim/aarch64/cpustate.c
@@ -345,7 +345,7 @@ aarch64_set_FP_long_double (sim_cpu *cpu, VReg reg, FRegister a)
#define GET_VEC_ELEMENT(REG, ELEMENT, FIELD) \
do \
{ \
- if (element >= ARRAY_SIZE (cpu->fr[0].FIELD)) \
+ if (ELEMENT >= ARRAY_SIZE (cpu->fr[0].FIELD)) \
{ \
TRACE_REGISTER (cpu, \
"Internal SIM error: invalid element number: %d ",\