aboutsummaryrefslogtreecommitdiff
path: root/sim/iq2000
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-11-01 00:58:05 -0400
committerMike Frysinger <vapier@gentoo.org>2021-11-01 00:58:05 -0400
commit94c9216c03ab1af16b1bdd11a10a66c13e6458d8 (patch)
tree5b33caa80ac8a854401a9ba0b02855bd9d3e01ac /sim/iq2000
parent2871d4d7f3c2971b6dbf003cf8942562cb6526bd (diff)
downloadgdb-94c9216c03ab1af16b1bdd11a10a66c13e6458d8.zip
gdb-94c9216c03ab1af16b1bdd11a10a66c13e6458d8.tar.gz
gdb-94c9216c03ab1af16b1bdd11a10a66c13e6458d8.tar.bz2
sim: iq2000: reduce -Wno-error scope
Clean up the warnings in sim-if, then reduce the -Werror disable to the files that still aren't clean that now that we require GNU make and can set variables on a per-object basis.
Diffstat (limited to 'sim/iq2000')
-rw-r--r--sim/iq2000/Makefile.in4
-rw-r--r--sim/iq2000/sim-if.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/sim/iq2000/Makefile.in b/sim/iq2000/Makefile.in
index 4f85dc7..b47d15a 100644
--- a/sim/iq2000/Makefile.in
+++ b/sim/iq2000/Makefile.in
@@ -37,8 +37,8 @@ ALL_CPU_CFLAGS = -DHAVE_CPU_IQ2000BF -DHAVE_CPU_IQ10BF
SIM_EXTRA_CLEAN = iq2000-clean
-# Code doesn't build cleanly yet.
-SIM_WERROR_CFLAGS =
+# Some modules don't build cleanly yet.
+cpu.o iq2000.o mloop.o sem.o: SIM_WERROR_CFLAGS =
## COMMON_POST_CONFIG_FRAG
diff --git a/sim/iq2000/sim-if.c b/sim/iq2000/sim-if.c
index 9728882..8cfc1e0 100644
--- a/sim/iq2000/sim-if.c
+++ b/sim/iq2000/sim-if.c
@@ -32,7 +32,7 @@ static void free_state (SIM_DESC);
/* Cover function for sim_cgen_disassemble_insn. */
-void
+static void
iq2000bf_disassemble_insn (SIM_CPU *cpu, const CGEN_INSN *insn,
const ARGBUF *abuf, IADDR pc, char *buf)
{
@@ -89,8 +89,8 @@ sim_open (SIM_OPEN_KIND kind, host_callback *callback, struct bfd *abfd,
}
/* Allocate core managed memory. */
- sim_do_commandf (sd, "memory region 0x%lx,0x%lx", IQ2000_INSN_VALUE, IQ2000_INSN_MEM_SIZE);
- sim_do_commandf (sd, "memory region 0x%lx,0x%lx", IQ2000_DATA_VALUE, IQ2000_DATA_MEM_SIZE);
+ sim_do_commandf (sd, "memory region 0x%x,0x%x", IQ2000_INSN_VALUE, IQ2000_INSN_MEM_SIZE);
+ sim_do_commandf (sd, "memory region 0x%x,0x%x", IQ2000_DATA_VALUE, IQ2000_DATA_MEM_SIZE);
/* check for/establish the reference program image */
if (sim_analyze_program (sd,