]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
sim: m32r: use @cpu@_fill_argbuf_tp to set trace & profile state
authorMike Frysinger <vapier@gentoo.org>
Fri, 15 Dec 2023 03:34:28 +0000 (22:34 -0500)
committerMike Frysinger <vapier@gentoo.org>
Fri, 15 Dec 2023 03:34:28 +0000 (22:34 -0500)
commit2f1de74501909db76a3a0b73da9d287d7458eef1
tree08677eec8537ed3512be6b8714b518020329ef70
parent880530b71fbbb3e778ee70fe5623f8641e6aceb7
sim: m32r: use @cpu@_fill_argbuf_tp to set trace & profile state

The mloop.in code does this, but these variants do not.  Use it to
avoid unused function warnings.  The fast_p logic in these files
also looks off, but that'll require a bit more work to fixup.

  CC       m32r/mloopx.o
m32r/mloopx.c:37:1: error: ‘m32rxf_fill_argbuf_tp’ defined but not used [-Werror=unused-function]
   37 | m32rxf_fill_argbuf_tp (const SIM_CPU *cpu, ARGBUF *abuf,
      | ^~~~~~~~~~~~~~~~~~~~~

  CC       m32r/mloop2.o
m32r/mloop2.c:37:1: error: ‘m32r2f_fill_argbuf_tp’ defined but not used [-Werror=unused-function]
   37 | m32r2f_fill_argbuf_tp (const SIM_CPU *cpu, ARGBUF *abuf,
      | ^~~~~~~~~~~~~~~~~~~~~

Reported-by: Simon Marchi <simon.marchi@polymtl.ca>
Tested-By: Simon Marchi <simon.marchi@polymtl.ca>
sim/m32r/mloop2.in
sim/m32r/mloopx.in