aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
Diffstat (limited to 'sim')
-rw-r--r--sim/ppc/ChangeLog5
-rw-r--r--sim/ppc/gdb-sim.c14
2 files changed, 14 insertions, 5 deletions
diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog
index a7efe94..c8b4a5a 100644
--- a/sim/ppc/ChangeLog
+++ b/sim/ppc/ChangeLog
@@ -1,3 +1,8 @@
+2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * gdb-sim.c (regnum2spr): Rename to...
+ (sim_spr_register_name): ... this. Make global.
+
2007-09-04 Jerome Guitton <guitton@adacore.com>
* sim/ppc/emul_bugapi.c (emul_bugapi_create): quote the file
diff --git a/sim/ppc/gdb-sim.c b/sim/ppc/gdb-sim.c
index 5431a66..a8eaa08 100644
--- a/sim/ppc/gdb-sim.c
+++ b/sim/ppc/gdb-sim.c
@@ -28,11 +28,10 @@
#include "gdb/remote-sim.h"
#include "gdb/sim-ppc.h"
-/* Return the name of the register whose number is REGNUM, or zero if
- REGNUM is an invalid register number. */
-
-static const char *
-regnum2spr (int spr)
+/* Return the register name for the supplied SPR if any, or NULL if
+ none. */
+const char *
+sim_spr_register_name (int spr)
{
if (spr_is_valid (spr))
return spr_name (spr);
@@ -40,6 +39,11 @@ regnum2spr (int spr)
return NULL;
}
+#define regnum2spr(SPR) sim_spr_register_name (SPR)
+
+/* Return the name of the register whose number is REGNUM, or zero if
+ REGNUM is an invalid register number. */
+
static const char *
regnum2name (int regnum)
{