diff options
-rw-r--r-- | sim/erc32/interf.c | 15 | ||||
-rw-r--r-- | sim/erc32/sis.c | 2 | ||||
-rw-r--r-- | sim/erc32/sis.h | 2 |
3 files changed, 16 insertions, 3 deletions
diff --git a/sim/erc32/interf.c b/sim/erc32/interf.c index 78dec6f..f433b9d 100644 --- a/sim/erc32/interf.c +++ b/sim/erc32/interf.c @@ -156,6 +156,21 @@ run_sim(struct pstate *sregs, uint64_t icount, int dis) return TIME_OUT; } +static int +fprintf_styled (void *stream, enum disassembler_style style, + const char *fmt, ...) +{ + int ret; + FILE *out = (FILE *) stream; + va_list args; + + va_start (args, fmt); + ret = vfprintf (out, fmt, args); + va_end (args); + + return ret; +} + SIM_DESC sim_open (SIM_OPEN_KIND kind, struct host_callback_struct *callback, struct bfd *abfd, char * const *argv) diff --git a/sim/erc32/sis.c b/sim/erc32/sis.c index 12eb21f..1d3ea13 100644 --- a/sim/erc32/sis.c +++ b/sim/erc32/sis.c @@ -138,7 +138,7 @@ run_sim(struct pstate *sregs, uint64_t icount, int dis) return TIME_OUT; } -int +static int fprintf_styled (void *stream, enum disassembler_style style, const char *fmt, ...) { diff --git a/sim/erc32/sis.h b/sim/erc32/sis.h index 3a27667..7103313 100644 --- a/sim/erc32/sis.h +++ b/sim/erc32/sis.h @@ -204,8 +204,6 @@ extern void init_regs (struct pstate *sregs); /* interf.c */ extern int run_sim (struct pstate *sregs, uint64_t icount, int dis); -extern int fprintf_styled (void *stream, enum disassembler_style style, - const char *fmt, ...) ATTRIBUTE_PRINTF (3, 4); /* float.c */ extern int get_accex (void); |