binutils-gdb/sim/frv
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
..
acinclude.m4 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
arch.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
arch.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
cache.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
cache.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
ChangeLog-2021 sim: rename ChangeLog files to ChangeLog-2021 2021-08-17 20:27:36 -04:00
cpu.c sim: frv: fix -Wincompatible-function-pointer-types warnings [PR sim/29752] 2024-01-22 20:12:08 -05:00
cpu.h sim: frv: fix -Wincompatible-function-pointer-types warnings [PR sim/29752] 2024-01-22 20:12:08 -05:00
cpuall.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
decode.c sim: frv: fix -Wincompatible-function-pointer-types warnings [PR sim/29752] 2024-01-22 20:12:08 -05:00
decode.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
frv-sim.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
frv.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
interrupts.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
local.mk sim: frv: fix -Wincompatible-function-pointer-types warnings [PR sim/29752] 2024-01-22 20:12:08 -05:00
memory.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
mloop.in Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
model.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
options.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
pipeline.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
profile-fr400.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
profile-fr400.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
profile-fr450.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
profile-fr500.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
profile-fr500.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
profile-fr550.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
profile-fr550.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
profile.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
profile.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
README
registers.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
registers.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
reset.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sem.c sim: frv: fix -Wincompatible-function-pointer-types warnings [PR sim/29752] 2024-01-22 20:12:08 -05:00
sim-if.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-main.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
traps.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00

This is the frv simulator directory.

It is still work-in-progress.  The current sources are
well tested and lots of features are in.

There are lots of machine generated files in the source directory!
They are only generated if you configure with --enable-cgen-maint,
similar in behaviour to Makefile.in, configure under automake/autoconf.

For details on the generator, see ../../cgen.