mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 18:14:13 +08:00
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.
This commit is contained in:
parent
c316a17c40
commit
6637a4265e
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
@ -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,
|
||||
|
@ -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.
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user