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