Shouldn't be any functional changes here.
+2021-06-27 Mike Frysinger <vapier@gentoo.org>
+
+ * cgen-trace.c (cgen_trace_extract): Make name & fmt const.
+ (cgen_trace_result): Make name const.
+ (cgen_trace_printf): Make fmt const.
+ * cgen-trace.h (cgen_trace_extract): Make 3rd arg const.
+ (cgen_trace_result): Make 2nd arg const.
+ (cgen_trace_printf): Likewise.
+
2021-06-27 Mike Frysinger <vapier@gentoo.org>
* cgen-mem.h (DECLARE_GETMEM_EXTERN): New macro.
}
void
-cgen_trace_extract (SIM_CPU *cpu, IADDR pc, char *name, ...)
+cgen_trace_extract (SIM_CPU *cpu, IADDR pc, const char *name, ...)
{
va_list args;
int printed_one_p = 0;
- char *fmt;
+ const char *fmt;
va_start (args, name);
do {
int type,ival;
- fmt = va_arg (args, char *);
+ fmt = va_arg (args, const char *);
if (fmt)
{
}
void
-cgen_trace_result (SIM_CPU *cpu, char *name, int type, ...)
+cgen_trace_result (SIM_CPU *cpu, const char *name, int type, ...)
{
va_list args;
This is only for tracing semantic code. */
void
-cgen_trace_printf (SIM_CPU *cpu, char *fmt, ...)
+cgen_trace_printf (SIM_CPU *cpu, const char *fmt, ...)
{
va_list args;
void cgen_trace_insn_fini (SIM_CPU *, const struct argbuf *, int);
void cgen_trace_insn (SIM_CPU *, const struct cgen_insn *,
const struct argbuf *, IADDR);
-void cgen_trace_extract (SIM_CPU *, IADDR, char *, ...);
-void cgen_trace_result (SIM_CPU *, char *, int, ...);
-void cgen_trace_printf (SIM_CPU *, char *fmt, ...);
+void cgen_trace_extract (SIM_CPU *, IADDR, const char *, ...);
+void cgen_trace_result (SIM_CPU *, const char *, int, ...);
+void cgen_trace_printf (SIM_CPU *, const char *fmt, ...);
/* Trace instruction results. */
#define CGEN_TRACE_RESULT_P(cpu, abuf) \