diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-15 22:41:50 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-12-19 05:51:10 -0500 |
commit | 8bc2893fb4ccb1c5b74aa6443ff9eb000468f029 (patch) | |
tree | 136d75967ea71c64bdd677c706433579555333a0 /sim | |
parent | cd3f716d9a05786fd617a1e44a890956da46d339 (diff) | |
download | gdb-8bc2893fb4ccb1c5b74aa6443ff9eb000468f029.zip gdb-8bc2893fb4ccb1c5b74aa6443ff9eb000468f029.tar.gz gdb-8bc2893fb4ccb1c5b74aa6443ff9eb000468f029.tar.bz2 |
sim: ft32: fix -Wunused-variable warnings
Diffstat (limited to 'sim')
-rw-r--r-- | sim/ft32/interp.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sim/ft32/interp.c b/sim/ft32/interp.c index 146c88a..9f880ab 100644 --- a/sim/ft32/interp.c +++ b/sim/ft32/interp.c @@ -116,8 +116,6 @@ ft32_read_item (SIM_DESC sd, int dw, uint32_t ea) { sim_cpu *cpu = STATE_CPU (sd, 0); address_word cia = CPU_PC_GET (cpu); - uint8_t byte[4]; - uint32_t r; ea = ft32_align (dw, ea); @@ -139,7 +137,6 @@ ft32_write_item (SIM_DESC sd, int dw, uint32_t ea, uint32_t v) { sim_cpu *cpu = STATE_CPU (sd, 0); address_word cia = CPU_PC_GET (cpu); - uint8_t byte[4]; ea = ft32_align (dw, ea); @@ -166,8 +163,6 @@ static uint32_t cpu_mem_read (SIM_DESC sd, uint32_t dw, uint32_t ea) sim_cpu *cpu = STATE_CPU (sd, 0); struct ft32_cpu_state *ft32_cpu = FT32_SIM_CPU (cpu); uint32_t insnpc = ft32_cpu->pc; - uint32_t r; - uint8_t byte[4]; ea &= 0x1ffff; if (ea & ~0xffff) @@ -327,7 +322,6 @@ step_once (SIM_DESC sd) { sim_cpu *cpu = STATE_CPU (sd, 0); struct ft32_cpu_state *ft32_cpu = FT32_SIM_CPU (cpu); - address_word cia = CPU_PC_GET (cpu); uint32_t inst; uint32_t dw; uint32_t cb; |