I get a couple of -Wmissing-declarations errors when building the sim.
This happens because an earlier patch added the declarations to a
cgen-generated header, but the recent re-generation then removed them.
This patch fixes the build by adding declarations just before the
definition. This is normally not best practice, but in this
particular situation it at leat un-breaks the build.
return info;
}
+/* Placate -Wmissing-prototypes when mloop.in isn't used. */
+void MY (f_specific_init) (SIM_CPU *current_cpu);
+
/* Hook function for per-cpu simulator initialization. */
void
#endif
}
\f
+/* Placate -Wmissing-prototypes when mloop.in isn't used. */
+int MY (XCONCAT3 (f_model_crisv,BASENUM, _u_stall))
+ (SIM_CPU *current_cpu ATTRIBUTE_UNUSED,
+ const IDESC *idesc,
+ int unit_num,
+ int referenced ATTRIBUTE_UNUSED);
+
/* Model function for arbitrary single stall cycles. */
int