sim: frv: fix uninitialized variable warning
authorMike Frysinger <vapier@gentoo.org>
Sun, 27 Jun 2021 04:01:39 +0000 (00:01 -0400)
committerMike Frysinger <vapier@gentoo.org>
Mon, 28 Jun 2021 03:31:28 +0000 (23:31 -0400)
This variable isn't set anywhere, so pass down NULL_CIA to indicate
we don't have a pc to pass.

sim/frv/ChangeLog
sim/frv/traps.c

index 51c9e172713d79e477746573582ebf054eaf9cfb..0877169b7f0ae61cebbdaf7995c699ca7d9fbb1f 100644 (file)
@@ -1,3 +1,7 @@
+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.
index 46cb8d92f29e893da9ff69268fd37a8ffaf889bd..59f1a25f5f1cc448ba6f81f2190925c55ef7802b 100644 (file)
@@ -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);