+2021-06-22 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-if.c: Include sim-hw.h.
+ (cris_write_interp): Change buf to const.
+ (sim_open): Cast sp_init to unsigned char *.
+
2021-06-22 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
#include <errno.h>
#include <unistd.h>
#include "sim-options.h"
+#include "sim-hw.h"
#include "dis-asm.h"
#include "environ.h"
interp_load_addr offset. */
static int
-cris_write_interp (SIM_DESC sd, SIM_ADDR mem, unsigned char *buf, int length)
+cris_write_interp (SIM_DESC sd, SIM_ADDR mem, const unsigned char *buf, int length)
{
return sim_write (sd, mem + interp_load_addr, buf, length);
}
CPU_CRIS_MISC_PROFILE (cpu)->flags = STATE_TRACE_FLAGS (sd)[0];
/* Set SP to the stack we allocated above. */
- (* CPU_REG_STORE (cpu)) (cpu, H_GR_SP, (char *) sp_init, 4);
+ (* CPU_REG_STORE (cpu)) (cpu, H_GR_SP, (unsigned char *) sp_init, 4);
/* Set the simulator environment data. */
cpu->highest_mmapped_page = NULL;