aboutsummaryrefslogtreecommitdiff
path: root/sim/frv
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-06-27 00:01:39 -0400
committerMike Frysinger <vapier@gentoo.org>2021-06-27 23:31:28 -0400
commit247867ebd359f46d0b67822f175f4721a52402ba (patch)
treef8e4fb626bf5d621fd414e15157354a6a2627111 /sim/frv
parent1415825a1bdc44fa86a57349d018f235f274b1b5 (diff)
downloadgdb-247867ebd359f46d0b67822f175f4721a52402ba.zip
gdb-247867ebd359f46d0b67822f175f4721a52402ba.tar.gz
gdb-247867ebd359f46d0b67822f175f4721a52402ba.tar.bz2
sim: frv: fix uninitialized variable warning
This variable isn't set anywhere, so pass down NULL_CIA to indicate we don't have a pc to pass.
Diffstat (limited to 'sim/frv')
-rw-r--r--sim/frv/ChangeLog4
-rw-r--r--sim/frv/traps.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/sim/frv/ChangeLog b/sim/frv/ChangeLog
index 51c9e17..0877169 100644
--- a/sim/frv/ChangeLog
+++ b/sim/frv/ChangeLog
@@ -1,5 +1,9 @@
2021-06-27 Mike Frysinger <vapier@gentoo.org>
+ * traps.c (frv_break): Delete pc and pass down NULL_CIA.
+
+2021-06-27 Mike Frysinger <vapier@gentoo.org>
+
* profile.c (frvbf_model_insn_after): Change return to void.
(enforce_full_fr_latency, post_wait_for_FR, post_wait_for_FRdouble,
post_wait_for_ACC, post_wait_for_CCR, post_wait_for_SPR,
diff --git a/sim/frv/traps.c b/sim/frv/traps.c
index 46cb8d9..59f1a25 100644
--- a/sim/frv/traps.c
+++ b/sim/frv/traps.c
@@ -286,14 +286,14 @@ frv_mtrap (SIM_CPU *current_cpu)
void
frv_break (SIM_CPU *current_cpu)
{
- IADDR pc;
SIM_DESC sd = CPU_STATE (current_cpu);
if (STATE_ENVIRONMENT (sd) != OPERATING_ENVIRONMENT)
{
/* Invalidate the insn cache because the debugger will presumably
replace the breakpoint insn with the real one. */
- sim_engine_halt (sd, current_cpu, NULL, pc, sim_stopped, SIM_SIGTRAP);
+ sim_engine_halt (sd, current_cpu, NULL, NULL_CIA, sim_stopped,
+ SIM_SIGTRAP);
}
frv_queue_break_interrupt (current_cpu);