aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-11-09 23:04:53 -0800
committerMike Frysinger <vapier@gentoo.org>2015-11-10 02:17:15 -0500
commit6637a4265e6144f5a9ad29e9fa08aba4bd959cb9 (patch)
tree3373068fcf52a3c7e9dedcccf026050e5ca94c71 /sim
parentc316a17c40e44e8798b34ff84130904f2e7a53de (diff)
downloadgdb-6637a4265e6144f5a9ad29e9fa08aba4bd959cb9.zip
gdb-6637a4265e6144f5a9ad29e9fa08aba4bd959cb9.tar.gz
gdb-6637a4265e6144f5a9ad29e9fa08aba4bd959cb9.tar.bz2
sim: cr16/d10v: localize translation funcs
These functions are only used in the interp module, so there's no point in exporting them and declaring them in the external sim interface.
Diffstat (limited to 'sim')
-rw-r--r--sim/cr16/ChangeLog6
-rw-r--r--sim/cr16/interp.c6
-rw-r--r--sim/d10v/ChangeLog6
-rw-r--r--sim/d10v/interp.c6
4 files changed, 18 insertions, 6 deletions
diff --git a/sim/cr16/ChangeLog b/sim/cr16/ChangeLog
index e81bb58..ccc4abb 100644
--- a/sim/cr16/ChangeLog
+++ b/sim/cr16/ChangeLog
@@ -1,3 +1,9 @@
+2015-11-10 Mike Frysinger <vapier@gentoo.org>
+
+ * interp.c (sim_cr16_translate_dmap_addr): Mark static.
+ (sim_cr16_translate_imap_addr): Likewise.
+ (sim_cr16_translate_addr): Likewise.
+
2015-06-23 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
diff --git a/sim/cr16/interp.c b/sim/cr16/interp.c
index 6e31e1a..5b3f5bb 100644
--- a/sim/cr16/interp.c
+++ b/sim/cr16/interp.c
@@ -426,7 +426,7 @@ imap_register (void *regcache, int reg_nr)
/* Given a virtual address in the DMAP address space, translate it
into a physical address. */
-unsigned long
+static unsigned long
sim_cr16_translate_dmap_addr (unsigned long offset,
int nr_bytes,
unsigned long *phys,
@@ -489,7 +489,7 @@ sim_cr16_translate_dmap_addr (unsigned long offset,
/* Given a virtual address in the IMAP address space, translate it
into a physical address. */
-unsigned long
+static unsigned long
sim_cr16_translate_imap_addr (unsigned long offset,
int nr_bytes,
unsigned long *phys,
@@ -542,7 +542,7 @@ sim_cr16_translate_imap_addr (unsigned long offset,
return nr_bytes;
}
-unsigned long
+static unsigned long
sim_cr16_translate_addr (unsigned long memaddr, int nr_bytes,
unsigned long *targ_addr, void *regcache,
unsigned long (*dmap_register) (void *regcache,
diff --git a/sim/d10v/ChangeLog b/sim/d10v/ChangeLog
index aeef0a4..765d7a5 100644
--- a/sim/d10v/ChangeLog
+++ b/sim/d10v/ChangeLog
@@ -1,3 +1,9 @@
+2015-11-10 Mike Frysinger <vapier@gentoo.org>
+
+ * interp.c (sim_d10v_translate_dmap_addr): Mark static.
+ (sim_d10v_translate_imap_addr): Likewise.
+ (sim_d10v_translate_addr): Likewise.
+
2015-06-23 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
diff --git a/sim/d10v/interp.c b/sim/d10v/interp.c
index b975561..9c059f7 100644
--- a/sim/d10v/interp.c
+++ b/sim/d10v/interp.c
@@ -388,7 +388,7 @@ set_spu_register (unsigned long value)
/* Given a virtual address in the DMAP address space, translate it
into a physical address. */
-unsigned long
+static unsigned long
sim_d10v_translate_dmap_addr (unsigned long offset,
int nr_bytes,
unsigned long *phys,
@@ -448,7 +448,7 @@ sim_d10v_translate_dmap_addr (unsigned long offset,
/* Given a virtual address in the IMAP address space, translate it
into a physical address. */
-unsigned long
+static unsigned long
sim_d10v_translate_imap_addr (unsigned long offset,
int nr_bytes,
unsigned long *phys,
@@ -501,7 +501,7 @@ sim_d10v_translate_imap_addr (unsigned long offset,
return nr_bytes;
}
-unsigned long
+static unsigned long
sim_d10v_translate_addr (unsigned long memaddr,
int nr_bytes,
unsigned long *targ_addr,