From 73d4725f218a68bce7923d8a647a54f1e629b58d Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Thu, 28 Jan 2021 17:27:44 +0000 Subject: [PATCH] sim/rx: mark some functions as static Some functions that should be marked static. sim/rx/ChangeLog: * fpu.c (check_exceptions): Make static. * gdb-if.c (handle_step): Likewise. * mem.c (mem_put_byte): Likewise. --- sim/rx/ChangeLog | 6 ++++++ sim/rx/fpu.c | 2 +- sim/rx/gdb-if.c | 2 +- sim/rx/mem.c | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/sim/rx/ChangeLog b/sim/rx/ChangeLog index 58b07eac531..732c902c212 100644 --- a/sim/rx/ChangeLog +++ b/sim/rx/ChangeLog @@ -1,3 +1,9 @@ +2021-02-08 Andrew Burgess + + * fpu.c (check_exceptions): Make static. + * gdb-if.c (handle_step): Likewise. + * mem.c (mem_put_byte): Likewise. + 2021-02-08 Andrew Burgess * cpu.h (trace_register_changes): Add void parameter type. diff --git a/sim/rx/fpu.c b/sim/rx/fpu.c index 00c3ab73f0b..f9e9007192a 100644 --- a/sim/rx/fpu.c +++ b/sim/rx/fpu.c @@ -354,7 +354,7 @@ static const char *ex_names[] = { /* This checks for all exceptional cases (not all FP exceptions) and returns TRUE if it is providing the result in *c. If it returns FALSE, the caller should do the "normal" operation. */ -int +static int check_exceptions (FP_Parts *a, FP_Parts *b, fp_t *c, FP_ExceptionCases ex_tab[5][5], FP_ExceptionCases *case_ret) diff --git a/sim/rx/gdb-if.c b/sim/rx/gdb-if.c index 55eb13d12ef..3d052e62baa 100644 --- a/sim/rx/gdb-if.c +++ b/sim/rx/gdb-if.c @@ -688,7 +688,7 @@ rx_signal_to_gdb_signal (int rx) /* Take a step return code RC and set up the variables consulted by sim_stop_reason appropriately. */ -void +static void handle_step (int rc) { if (execution_error_get_last_error () != SIM_ERR_NONE) diff --git a/sim/rx/mem.c b/sim/rx/mem.c index 7fbf08e6415..fe8e08d1460 100644 --- a/sim/rx/mem.c +++ b/sim/rx/mem.c @@ -262,7 +262,7 @@ mtypec (int address) #define E() if (trace) e() -void +static void mem_put_byte (unsigned int address, unsigned char value) { unsigned char *m; -- 2.30.2