2015-12-26 Mike Frysinger <vapier@gentoo.org>
+ * sim-if.c (sim_open): Delete cpu variable. Pass NULL/NULL_CIA to
+ sim_core_write_buffer.
+
+2015-12-26 Mike Frysinger <vapier@gentoo.org>
+
* sim-if.c (sim_create_inferior): Delete old comment and set up
STATE_PROG_ARGV.
int i;
char **prog_argv = STATE_PROG_ARGV (sd);
int my_argc = 0;
- /* All CPU:s have the same memory map, apparently. */
- SIM_CPU *cpu = STATE_CPU (sd, 0);
USI csp;
bfd_byte buf[4];
USI data_ = data; \
USI addr_ = addr; \
bfd_putl32 (data_, buf); \
- if (sim_core_write_buffer (sd, cpu, 0, buf, addr_, 4) != 4) \
+ if (sim_core_write_buffer (sd, NULL, NULL_CIA, buf, addr_, 4) != 4)\
goto abandon_chip; \
} \
while (0)
{
size_t strln = strlen (prog_argv[i]) + 1;
- if (sim_core_write_buffer (sd, cpu, 0, prog_argv[i], epp, strln)
+ if (sim_core_write_buffer (sd, NULL, NULL_CIA, prog_argv[i], epp,
+ strln)
!= strln)
goto abandon_chip;
{
unsigned int strln = strlen (my_environ[i]) + 1;
- if (sim_core_write_buffer (sd, cpu, 0, my_environ[i], epp, strln)
+ if (sim_core_write_buffer (sd, NULL, NULL_CIA, my_environ[i], epp,
+ strln)
!= strln)
goto abandon_chip;