[PATCH/committed,19/21] sim: moxie: fix -Wunused-variable warnings

Message ID 20231219105155.10433-19-vapier@gentoo.org
State New
Headers
Series [PATCH/committed,01/21] sim: common: fix -Wunused-variable warnings |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 warning Patch is already merged
linaro-tcwg-bot/tcwg_gdb_build--master-arm warning Patch is already merged

Commit Message

Mike Frysinger Dec. 19, 2023, 10:51 a.m. UTC
  ---
 sim/moxie/interp.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
  

Patch

diff --git a/sim/moxie/interp.c b/sim/moxie/interp.c
index ff41e85a184e..214af57daf93 100644
--- a/sim/moxie/interp.c
+++ b/sim/moxie/interp.c
@@ -91,11 +91,6 @@  moxie_store_unsigned_integer (unsigned char *addr, int len, unsigned long val)
     }
 }
 
-/* moxie register names.  */
-static const char *reg_names[16] = 
-  { "$fp", "$sp", "$r0", "$r1", "$r2", "$r3", "$r4", "$r5", 
-    "$r6", "$r7", "$r8", "$r9", "$r10", "$r11", "$r12", "$r13" };
-
 /* The machine state.
 
    This state is maintained in host byte order.  The fetch/store
@@ -137,7 +132,6 @@  static void
 set_initial_gprs (void)
 {
   int i;
-  long space;
   
   /* Set up machine just out of reset.  */
   cpu.asregs.regs[PC_REGNO] = 0;
@@ -944,7 +938,6 @@  sim_engine_run (SIM_DESC sd,
 		    {
 		      char fname[1024];
 		      int mode = (int) convert_target_flags ((unsigned) cpu.asregs.regs[3]);
-		      int perm = (int) cpu.asregs.regs[4];
 		      int fd;
 		      sim_core_read_buffer (sd, scpu, read_map, fname,
 					    cpu.asregs.regs[2], 1024);
@@ -1297,7 +1290,7 @@  sim_create_inferior (SIM_DESC sd, struct bfd *prog_bfd,
 		     char * const *argv, char * const *env)
 {
   char * const *avp;
-  int l, argc, i, tp;
+  int argc, i, tp;
   sim_cpu *scpu = STATE_CPU (sd, 0); /* FIXME */
 
   if (prog_bfd != NULL)