X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=sim%2Fm32r%2Fdecode2.c;h=2ea1aa34403f529ce27e431a5f69c5243699e353;hb=87f83f20023bf366c14ec4e0fd307948d96caaee;hp=a8833dbb8f09e2bbaa1bf60a4408d6a7557c9395;hpb=61baf725eca99af2569262d10aca03dcde2698f6;p=deliverable%2Fbinutils-gdb.git diff --git a/sim/m32r/decode2.c b/sim/m32r/decode2.c index a8833dbb8f..2ea1aa3440 100644 --- a/sim/m32r/decode2.c +++ b/sim/m32r/decode2.c @@ -2,7 +2,7 @@ THIS FILE IS MACHINE GENERATED WITH CGEN. -Copyright 1996-2017 Free Software Foundation, Inc. +Copyright 1996-2020 Free Software Foundation, Inc. This file is part of the GNU simulators. @@ -235,7 +235,7 @@ m32r2f_init_idesc_table (SIM_CPU *cpu) init_idesc (cpu, id, t); /* Now fill in the values for the chosen cpu. */ - for (t = m32r2f_insn_sem, tend = t + sizeof (m32r2f_insn_sem) / sizeof (*t); + for (t = m32r2f_insn_sem, tend = t + ARRAY_SIZE (m32r2f_insn_sem); t != tend; ++t) { init_idesc (cpu, & table[t->index], t);