+2021-06-24 Mike Frysinger <vapier@gentoo.org>
+
+ * cris-sim.h (cris_bmod_handler): Delete.
+ * traps.c (cris_dump_map): New prototype.
+ (cris_bmod_handler): Delete.
+ (h_supr_set_handler): Likewise.
+ (h_supr_get_handler): Likewise.
+
2021-06-23 Mike Frysinger <vapier@gentoo.org>
* traps.c (cris_getpid): New function.
/* Handler prototypes for functions called from the CGEN description. */
-extern USI cris_bmod_handler (SIM_CPU *, UINT, USI);
extern void cris_flush_simulator_decode_cache (SIM_CPU *, USI);
extern USI crisv10f_break_handler (SIM_CPU *, USI, USI);
extern USI crisv32f_break_handler (SIM_CPU *, USI, USI);
return 0;
}
-/* Debug helper; to be run from gdb. */
+/* Provide a prototype to silence -Wmissing-prototypes. */
+void cris_dump_map (SIM_CPU *current_cpu);
+/* Debug helper; to be run from gdb. */
void
cris_dump_map (SIM_CPU *current_cpu)
{
return vpc;
}
-/* Handlers from the CGEN description that should not be called. */
-
-USI
-cris_bmod_handler (SIM_CPU *current_cpu ATTRIBUTE_UNUSED,
- UINT srcreg ATTRIBUTE_UNUSED,
- USI dstreg ATTRIBUTE_UNUSED)
-{
- SIM_DESC sd = CPU_STATE (current_cpu);
- abort ();
-}
-
-void
-h_supr_set_handler (SIM_CPU *current_cpu ATTRIBUTE_UNUSED,
- UINT index ATTRIBUTE_UNUSED,
- USI page ATTRIBUTE_UNUSED,
- USI newval ATTRIBUTE_UNUSED)
-{
- SIM_DESC sd = CPU_STATE (current_cpu);
- abort ();
-}
-
-USI
-h_supr_get_handler (SIM_CPU *current_cpu ATTRIBUTE_UNUSED,
- UINT index ATTRIBUTE_UNUSED,
- USI page ATTRIBUTE_UNUSED)
-{
- SIM_DESC sd = CPU_STATE (current_cpu);
- abort ();
-}
-
/* Swap one context for another. */
static void