aboutsummaryrefslogtreecommitdiff
path: root/sim/cris/decodev10.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/cris/decodev10.c')
-rw-r--r--sim/cris/decodev10.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/cris/decodev10.c b/sim/cris/decodev10.c
index c4c174f..d9242e3 100644
--- a/sim/cris/decodev10.c
+++ b/sim/cris/decodev10.c
@@ -302,7 +302,7 @@ crisv10f_init_idesc_table (SIM_CPU *cpu)
init_idesc (cpu, id, t);
/* Now fill in the values for the chosen cpu. */
- for (t = crisv10f_insn_sem, tend = t + sizeof (crisv10f_insn_sem) / sizeof (*t);
+ for (t = crisv10f_insn_sem, tend = t + ARRAY_SIZE (crisv10f_insn_sem);
t != tend; ++t)
{
init_idesc (cpu, & table[t->index], t);