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