binutils-gdb/cpu
Mike Frysinger 8fed036bef sim: frv: fix -Wincompatible-function-pointer-types warnings [PR sim/29752]
Some compilers warn in the frv code:
sem.c:24343:41: error: incompatible function pointer types passing
  'void (SIM_CPU *, UINT, UDI)' (aka 'void (struct _sim_cpu *, unsigned int, unsigned long)')
  to parameter of type
  'void (*)(SIM_CPU *, UINT, DI)' (aka 'void (*)(struct _sim_cpu *, unsigned int, long)') [-Wincompatible-function-pointer-types]

This is due to frvbf_h_acc40U_set using UDI for setting the new value,
but using the common sim_queue_fn_di_write API which uses DI.  The same
size, but different sign.  We could change frvbf_h_acc40U_set to take a
DI without changing behavior in practice: the UDI is already passed via
the queue function which accepts a DI, and frvbf_h_acc40U_set already
casts the input to UDI before running any operations on it.  However,
these files are all generated, so manual changes here would be reverted.

Seems like we can only change the register type for all APIs in the cpu
definition.  This builds cleanly, and passes sim unittests.  Not sure if
it's 100% the answer, but seems to be the best we have currently.

Bug: https://sourceware.org/PR29752
2024-01-22 20:12:08 -05:00
..
ChangeLog Add markers for 2.42 branch 2024-01-15 14:42:15 +00:00
cris.cpu sim: cris: change temp var name slightly to avoid shadowing 2024-01-06 23:30:43 -05:00
epiphany.cpu
epiphany.opc
fr30.cpu
fr30.opc
frv.cpu sim: frv: fix -Wincompatible-function-pointer-types warnings [PR sim/29752] 2024-01-22 20:12:08 -05:00
frv.opc
ip2k.cpu
ip2k.opc
iq10.cpu
iq2000.cpu sim --enable-cgen-maint 2023-08-19 12:41:32 +09:30
iq2000.opc
iq2000m.cpu
lm32.cpu
lm32.opc
m32c.cpu
m32c.opc
m32r.cpu
m32r.opc
mep-avc2.cpu
mep-avc.cpu
mep-c5.cpu
mep-core.cpu
mep-default.cpu
mep-ext-cop.cpu
mep-fmax.cpu
mep-h1.cpu
mep-ivc2.cpu
mep-rhcop.cpu
mep-sample-ucidsp.cpu
mep.cpu
mep.opc
mt.cpu
mt.opc
or1k.cpu
or1k.opc
or1kcommon.cpu
or1korbis.cpu cpu: or1k: drop unused l.swa flag 2024-01-01 10:51:23 -05:00
or1korfpx.cpu
sh64-compact.cpu
sh64-media.cpu
sh.cpu
sh.opc
simplify.inc
xstormy16.cpu
xstormy16.opc