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