summaryrefslogtreecommitdiff
path: root/sim/cris/decodev32.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/cris/decodev32.c')
-rw-r--r--sim/cris/decodev32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/cris/decodev32.c b/sim/cris/decodev32.c
index 4ea146d250..10162e8836 100644
--- a/sim/cris/decodev32.c
+++ b/sim/cris/decodev32.c
@@ -306,7 +306,7 @@ crisv32f_init_idesc_table (SIM_CPU *cpu)
init_idesc (cpu, id, t);
/* Now fill in the values for the chosen cpu. */
- for (t = crisv32f_insn_sem, tend = t + sizeof (crisv32f_insn_sem) / sizeof (*t);
+ for (t = crisv32f_insn_sem, tend = t + ARRAY_SIZE (crisv32f_insn_sem);
t != tend; ++t)
{
init_idesc (cpu, & table[t->index], t);