diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-15 22:12:20 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-12-19 05:51:11 -0500 |
commit | 5daeb7f67a02050d94a836778538e823059d4443 (patch) | |
tree | 4f490051a76bca0a95afa6fba2efebaab8a76c3e /sim/moxie | |
parent | eade7580251b53909ad8adcf3b89e4a8c608fd79 (diff) | |
download | gdb-5daeb7f67a02050d94a836778538e823059d4443.zip gdb-5daeb7f67a02050d94a836778538e823059d4443.tar.gz gdb-5daeb7f67a02050d94a836778538e823059d4443.tar.bz2 |
sim: moxie: fix -Wunused-variable warnings
Diffstat (limited to 'sim/moxie')
-rw-r--r-- | sim/moxie/interp.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sim/moxie/interp.c b/sim/moxie/interp.c index ff41e85..214af57 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) |