sim: add a proper sim_core_trans_addr prototype
authorMike Frysinger <vapier@gentoo.org>
Mon, 26 Mar 2012 02:18:43 +0000 (02:18 +0000)
committerMike Frysinger <vapier@gentoo.org>
Mon, 26 Mar 2012 02:18:43 +0000 (02:18 +0000)
The common code has a sim_core_trans_addr() helper that only the m32r code
uses.  Move the inline extern in the m32r code to the proper common header.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
sim/common/ChangeLog
sim/common/sim-core.h
sim/m32r/ChangeLog
sim/m32r/traps-linux.c

index 6e6d2fd7035ae1a29bd512d50490d2247ee1f302..462fb61b3c40343b623c618b2794b4c6637c8d7c 100644 (file)
@@ -1,3 +1,7 @@
+2012-03-25  Mike Frysinger  <vapier@gentoo.org>
+
+       * sim-core.h (sim_core_trans_addr): Add prototype.
+
 2012-03-24  Hans-Peter Nilsson  <hp@axis.com>
 
        * nrun.c: Add #ifdef HAVE_CONFIG_H and associated includes stanza
index 5797be0e625a372be1faaf730c5d88ef4ca82719..9607b6029c5bd2ed12cc7b74002b87a523b3c60f 100644 (file)
@@ -241,6 +241,14 @@ extern unsigned sim_core_xor_write_buffer
  unsigned nr_bytes);
 
 
+/* Translate an address based on a map.  */
+
+extern void *sim_core_trans_addr
+(SIM_DESC sd,
+ sim_cpu *cpu,
+ unsigned map,
+ address_word addr);
+
 
 /* Fixed sized, processor oriented, read/write.
 
index 6a85991b8bccda545f32eec7860b9d2a2893ae77..d59b73c120d63f8cb7f1ed0a0c05d7a3558642b5 100644 (file)
@@ -1,3 +1,7 @@
+2012-03-25  Mike Frysinger  <vapier@gentoo.org>
+
+       * traps-linux.c (sim_core_trans_addr): Delete prototype.
+
 2012-03-24  Mike Frysinger  <vapier@gentoo.org>
 
        * aclocal.m4, config.in, configure: Regenerate.
index 0138a4edb36fcc49f95785974f588a67056ca431..d7d552b3e9090119046d4770a8b1aa30500cf842 100644 (file)
@@ -141,7 +141,6 @@ static void *
 t2h_addr (host_callback *cb, struct cb_syscall *sc,
           unsigned long taddr)
 {
-  extern sim_core_trans_addr (SIM_DESC, sim_cpu *, unsigned, address_word);
   void *addr;
   SIM_DESC sd = (SIM_DESC) sc->p1;
   SIM_CPU *cpu = (SIM_CPU *) sc->p2;
This page took 0.029709 seconds and 4 git commands to generate.