sim: m68hc11/mips/mn10300/v850: add basic sim_pc_get
The previous profile change broke these sims that use sim-profile but not sim-cpu (due to missing model support). Add simple funcs until we can convert these over properly.
This commit is contained in:
parent
282c975030
commit
05f53ed611
@ -1,3 +1,7 @@
|
||||
2015-03-24 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* interp.c (sim_pc_get): New function.
|
||||
|
||||
2015-03-24 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* compile.c (sim_set_profile, sim_set_profile_size, sim_set_callbacks,
|
||||
|
@ -679,6 +679,12 @@ sim_store_register (SIM_DESC sd, int rn, unsigned char *memory, int length)
|
||||
return 2;
|
||||
}
|
||||
|
||||
sim_cia
|
||||
sim_pc_get (sim_cpu *cpu)
|
||||
{
|
||||
return CIA_GET (cpu);
|
||||
}
|
||||
|
||||
/* Halt the simulator after just one instruction */
|
||||
|
||||
static void
|
||||
|
@ -1,3 +1,7 @@
|
||||
2015-03-24 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* interp.c (sim_pc_get): New function.
|
||||
|
||||
2015-03-24 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* sim-main.h (SIM_HAVE_BIENDIAN): Delete.
|
||||
|
@ -1093,6 +1093,11 @@ sim_fetch_register (sd,rn,memory,length)
|
||||
return 0;
|
||||
}
|
||||
|
||||
sim_cia
|
||||
sim_pc_get (sim_cpu *cpu)
|
||||
{
|
||||
return PC;
|
||||
}
|
||||
|
||||
SIM_RC
|
||||
sim_create_inferior (sd, abfd, argv,env)
|
||||
|
@ -1,3 +1,7 @@
|
||||
2015-03-24 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* interp.c (sim_pc_get): New function.
|
||||
|
||||
2015-03-24 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* configure: Regenerate.
|
||||
|
@ -396,6 +396,11 @@ sim_store_register (SIM_DESC sd,
|
||||
return length;
|
||||
}
|
||||
|
||||
sim_cia
|
||||
sim_pc_get (sim_cpu *cpu)
|
||||
{
|
||||
return PC;
|
||||
}
|
||||
|
||||
void
|
||||
mn10300_core_signal (SIM_DESC sd,
|
||||
|
@ -1,3 +1,7 @@
|
||||
2015-03-24 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* interp.c (sim_pc_get): New function.
|
||||
|
||||
2015-03-16 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* config.in, configure: Regenerate.
|
||||
|
@ -324,3 +324,9 @@ sim_store_register (SIM_DESC sd,
|
||||
State.regs[rn] = T2H_4 (*(unsigned32 *) memory);
|
||||
return length;
|
||||
}
|
||||
|
||||
sim_cia
|
||||
sim_pc_get (sim_cpu *cpu)
|
||||
{
|
||||
return PC;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user