Closed baryluk closed 5 years ago
Fixing redeclaration to extern void qemu_system_reset_request(Shutdowncause);
and then in target/m68k/op_helper.c
line , function m68k_interrupt_all
calling it as qemu_system_reset_request(SHUTDOWN_CAUSE_GUEST_RESET);
, resolves the issue. (One might need to include sysemu/runstate.h
and/or qapi/qapi-types-run-state.h
for it to fully work).
However, I would also recommend doing #include "sysemu/runstate.h"
directly maybe in this op_helper.c
file, and removing manual extern declaration to prevent similar issues in the future. This is what most other targets are doing, and these include files are very small, so extern doesn't bring any advantages.
Fixed now.
gcc 9.2.1
For reference
vlc.:1611
: