diff options
author | Markus Deuling <deuling@de.ibm.com> | 2007-11-19 05:06:24 +0000 |
---|---|---|
committer | Markus Deuling <deuling@de.ibm.com> | 2007-11-19 05:06:24 +0000 |
commit | e7faf938594c703cb898154f1eed5278163eb2ec (patch) | |
tree | fdd0995d0dfa307254f0e07ce13154e6d0f4315c /gdb/rs6000-tdep.c | |
parent | cdfeee4f478cdd6961e4c208a0acc6d03e564eb0 (diff) | |
download | gdb-e7faf938594c703cb898154f1eed5278163eb2ec.zip gdb-e7faf938594c703cb898154f1eed5278163eb2ec.tar.gz gdb-e7faf938594c703cb898154f1eed5278163eb2ec.tar.bz2 |
2007-11-19 Markus Deuling <deuling@de.ibm.com>
* gdbarch.sh (register_sim_regno): Add gdbarch as parameter.
* gdbarch.{c,h}: Regenerate.
* arch-utils.h (legacy_register_sim_regno): Add gdbarch as parameter.
* score-tdep.c (score_register_sim_regno): Likewise.
* sim-regno.h (one2one_register_sim_regno): Likewise.
* arch-utils.c (legacy_register_sim_regno): Add gdbarch as parameter.
Replace current_gdbarch by gdbarch.
* sh-tdep.c (sh_sh2a_register_sim_regno)
(sh_dsp_register_sim_regno): Likewise.
* rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
* mips-tdep.c (mips_register_sim_regno): Likewise.
* m32c-tdep.c (m32c_register_sim_regno): Likewise.
* frv-tdep.c (frv_register_sim_regno): Likewise.
* arm-tdep.c (arm_register_sim_regno): Likewise.
* remote-sim.c (one2one_register_sim_regno): Likewise.
Diffstat (limited to 'gdb/rs6000-tdep.c')
-rw-r--r-- | gdb/rs6000-tdep.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index 198f2c8..2d91825 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -342,17 +342,17 @@ init_sim_regno_table (struct gdbarch *arch) /* Given a GDB register number REG, return the corresponding SIM register number. */ static int -rs6000_register_sim_regno (int reg) +rs6000_register_sim_regno (struct gdbarch *gdbarch, int reg) { - struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch); + struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); int sim_regno; if (tdep->sim_regno == NULL) - init_sim_regno_table (current_gdbarch); + init_sim_regno_table (gdbarch); gdb_assert (0 <= reg - && reg <= gdbarch_num_regs (current_gdbarch) - + gdbarch_num_pseudo_regs (current_gdbarch)); + && reg <= gdbarch_num_regs (gdbarch) + + gdbarch_num_pseudo_regs (gdbarch)); sim_regno = tdep->sim_regno[reg]; if (sim_regno >= 0) |