sim: cr16/d10v: localize translation funcs
authorMike Frysinger <vapier@gentoo.org>
Tue, 10 Nov 2015 07:04:53 +0000 (23:04 -0800)
committerMike Frysinger <vapier@gentoo.org>
Tue, 10 Nov 2015 07:17:15 +0000 (02:17 -0500)
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.

include/gdb/ChangeLog
include/gdb/sim-cr16.h
include/gdb/sim-d10v.h
sim/cr16/ChangeLog
sim/cr16/interp.c
sim/d10v/ChangeLog
sim/d10v/interp.c

index 4d992d29a9b6f4ee3921dcbc375bb1bc8093b62d..57a83ce657ec98940908ee3af95fbe7bfa78f58a 100644 (file)
@@ -1,3 +1,12 @@
+2015-11-10  Mike Frysinger  <vapier@gentoo.org>
+
+       * sim-cr16.h (sim_cr16_translate_dmap_addr): Delete.
+       (sim_cr16_translate_imap_addr): Likewise.
+       (sim_cr16_translate_addr): Likewise.
+       * sim-d10v.h (sim_d10v_translate_dmap_addr): Delete.
+       (sim_d10v_translate_imap_addr): Likewise.
+       (sim_d10v_translate_addr): Likewise.
+
 2015-06-17  Mike Frysinger  <vapier@gentoo.org>
 
        * callback.h (CB_TARGET_DEFS_MAP): Add name member.
index 4d4da0405d0c943856736e5faa4d0d109900ae67..03f4b817e7ca9aebe6aed35bea3df5bfe1af1769 100644 (file)
@@ -33,29 +33,6 @@ enum
     SIM_CR16_MEMORY_IMAP    = 0x10000000
   };
 
-extern unsigned long sim_cr16_translate_dmap_addr
-  (unsigned long offset,
-   int nr_bytes,
-   unsigned long *phys,
-   void *regcache,
-   unsigned long (*dmap_register) (void *regcache, int reg_nr));
-
-extern unsigned long sim_cr16_translate_imap_addr
-  (unsigned long offset,
-   int nr_bytes,
-   unsigned long *phys,
-   void *regcache,
-   unsigned long (*imap_register) (void *regcache, int reg_nr));
-
-extern unsigned long sim_cr16_translate_addr
-  (unsigned long vaddr,
-   int nr_bytes,
-   unsigned long *phys,
-   void *regcache,
-   unsigned long (*dmap_register) (void *regcache, int reg_nr),
-   unsigned long (*imap_register) (void *regcache, int reg_nr));
-
-
 /* The simulator makes use of the following register information. */
 
 enum sim_cr16_regs
index 5040dd60dab4200806cc83f6200f94c0f9717a1a..341676697555917f619f9e9fa701020dc03cbc56 100644 (file)
@@ -53,29 +53,6 @@ enum
     SIM_D10V_MEMORY_IMAP = 0x11000000
   };
 
-extern unsigned long sim_d10v_translate_dmap_addr
-  (unsigned long offset,
-   int nr_bytes,
-   unsigned long *phys,
-   void *regcache,
-   unsigned long (*dmap_register) (void *regcache, int reg_nr));
-
-extern unsigned long sim_d10v_translate_imap_addr
-  (unsigned long offset,
-   int nr_bytes,
-   unsigned long *phys,
-   void *regcache,
-   unsigned long (*imap_register) (void *regcache, int reg_nr));
-
-extern unsigned long sim_d10v_translate_addr
-  (unsigned long vaddr,
-   int nr_bytes,
-   unsigned long *phys,
-   void *regcache,
-   unsigned long (*dmap_register) (void *regcache, int reg_nr),
-   unsigned long (*imap_register) (void *regcache, int reg_nr));
-
-
 /* The simulator makes use of the following register information. */
 
 enum sim_d10v_regs
index e81bb585cbcd08d2a91d0cfc62daa742e8020cdf..ccc4abb326ae405cdfc86dc9945c17a0857f7a44 100644 (file)
@@ -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.
index 6e31e1a51c422ed0f18804518df02745d99523fe..5b3f5bb81bfa53c87cbcddad1f238e048633f569 100644 (file)
@@ -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,
index aeef0a4534e6a2473d6a155edeedff3e39131227..765d7a536ce435b177f1a1bd845c9b91b51ab88c 100644 (file)
@@ -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.
index b975561442308c6e9c72261a6337c566c3c8520a..9c059f72be768e78f2385f6d015b90b5cb677c12 100644 (file)
@@ -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,