aboutsummaryrefslogtreecommitdiff
path: root/sim/rx
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2021-01-28 17:27:44 +0000
committerAndrew Burgess <andrew.burgess@embecosm.com>2021-02-08 11:01:07 +0000
commit73d4725f218a68bce7923d8a647a54f1e629b58d (patch)
treebde819815badf19c74897319300774093dd4a36c /sim/rx
parent1c3e93a41f88703818999ed492699de26b0748cd (diff)
downloadgdb-73d4725f218a68bce7923d8a647a54f1e629b58d.zip
gdb-73d4725f218a68bce7923d8a647a54f1e629b58d.tar.gz
gdb-73d4725f218a68bce7923d8a647a54f1e629b58d.tar.bz2
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.
Diffstat (limited to 'sim/rx')
-rw-r--r--sim/rx/ChangeLog6
-rw-r--r--sim/rx/fpu.c2
-rw-r--r--sim/rx/gdb-if.c2
-rw-r--r--sim/rx/mem.c2
4 files changed, 9 insertions, 3 deletions
diff --git a/sim/rx/ChangeLog b/sim/rx/ChangeLog
index 58b07ea..732c902 100644
--- a/sim/rx/ChangeLog
+++ b/sim/rx/ChangeLog
@@ -1,5 +1,11 @@
2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
+ * fpu.c (check_exceptions): Make static.
+ * gdb-if.c (handle_step): Likewise.
+ * mem.c (mem_put_byte): Likewise.
+
+2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
+
* cpu.h (trace_register_changes): Add void parameter type.
* err.c (ee_overrides): Likewise.
* mem.c (mem_usage_stats): Likewise.
diff --git a/sim/rx/fpu.c b/sim/rx/fpu.c
index 00c3ab7..f9e9007 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 55eb13d..3d052e6 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 7fbf08e..fe8e08d 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;