diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-12-30 03:28:45 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-12-30 03:30:25 -0500 |
commit | e1211e55062594679697d2175b7ea77dad173823 (patch) | |
tree | fc4ef40e234adb3dc4072d112d9302ffcd6f4819 /sim/arm | |
parent | c78dff22918f29b3970729f32f70060b70e75678 (diff) | |
download | gdb-e1211e55062594679697d2175b7ea77dad173823.zip gdb-e1211e55062594679697d2175b7ea77dad173823.tar.gz gdb-e1211e55062594679697d2175b7ea77dad173823.tar.bz2 |
sim: arm/d10v/h8300/m68hc11/microblaze/mips/mn10300/moxie/sh/v850: convert to common sim_{fetch,store}_register
Diffstat (limited to 'sim/arm')
-rw-r--r-- | sim/arm/ChangeLog | 8 | ||||
-rw-r--r-- | sim/arm/wrapper.c | 16 |
2 files changed, 14 insertions, 10 deletions
diff --git a/sim/arm/ChangeLog b/sim/arm/ChangeLog index 5cfc633..024f52e 100644 --- a/sim/arm/ChangeLog +++ b/sim/arm/ChangeLog @@ -1,3 +1,11 @@ +2015-12-30 Mike Frysinger <vapier@gentoo.org> + + * wrapper.c (sim_store_register): Rename to ... + (arm_reg_store): ... this. + (sim_fetch_register): Rename to ... + (arm_reg_fetch): ... this. + (sim_open): Call CPU_REG_FETCH/CPU_REG_STORE. + 2015-12-27 Mike Frysinger <vapier@gentoo.org> * Makefile.in (SIM_OBJS): Delete sim-hload.o. diff --git a/sim/arm/wrapper.c b/sim/arm/wrapper.c index db96cca..1971268 100644 --- a/sim/arm/wrapper.c +++ b/sim/arm/wrapper.c @@ -431,11 +431,8 @@ tomem (struct ARMul_State *state, } } -int -sim_store_register (SIM_DESC sd ATTRIBUTE_UNUSED, - int rn, - unsigned char *memory, - int length) +static int +arm_reg_store (SIM_CPU *cpu, int rn, unsigned char *memory, int length) { init (); @@ -539,11 +536,8 @@ sim_store_register (SIM_DESC sd ATTRIBUTE_UNUSED, return length; } -int -sim_fetch_register (SIM_DESC sd ATTRIBUTE_UNUSED, - int rn, - unsigned char *memory, - int length) +static int +arm_reg_fetch (SIM_CPU *cpu, int rn, unsigned char *memory, int length) { ARMword regval; int len = length; @@ -870,6 +864,8 @@ sim_open (SIM_OPEN_KIND kind, { SIM_CPU *cpu = STATE_CPU (sd, i); + CPU_REG_FETCH (cpu) = arm_reg_fetch; + CPU_REG_STORE (cpu) = arm_reg_store; CPU_PC_FETCH (cpu) = arm_pc_get; CPU_PC_STORE (cpu) = arm_pc_set; } |