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