aboutsummaryrefslogtreecommitdiff
path: root/sim/frv/cache.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-06 20:07:22 -0700
committerMike Frysinger <vapier@gentoo.org>2023-12-07 21:41:27 -0700
commit0dabdc69c72bf3c5c0fc2e9fce21a89227a04b32 (patch)
tree541f1fa1ee2a34d71b22da93c58dd04898e28037 /sim/frv/cache.c
parent89d7fc2ab0b8d37c66fb39d68246df51c7669831 (diff)
downloadgdb-0dabdc69c72bf3c5c0fc2e9fce21a89227a04b32.zip
gdb-0dabdc69c72bf3c5c0fc2e9fce21a89227a04b32.tar.gz
gdb-0dabdc69c72bf3c5c0fc2e9fce21a89227a04b32.tar.bz2
sim: frv: fix -Wunused-but-set-variable warnings
Diffstat (limited to 'sim/frv/cache.c')
-rw-r--r--sim/frv/cache.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sim/frv/cache.c b/sim/frv/cache.c
index 76f762f..b4f33f1 100644
--- a/sim/frv/cache.c
+++ b/sim/frv/cache.c
@@ -362,7 +362,6 @@ read_data_from_memory (SIM_CPU *current_cpu, SI address, char *buffer,
static void
fill_line_from_memory (FRV_CACHE *cache, FRV_CACHE_TAG *tag, SI address)
{
- PCADDR pc;
int line_alignment;
SI read_address;
SIM_CPU *current_cpu = cache->cpu;
@@ -382,7 +381,6 @@ fill_line_from_memory (FRV_CACHE *cache, FRV_CACHE_TAG *tag, SI address)
tag->line = cache->data_storage + (line_index * cache->line_size);
}
- pc = CPU_PC_GET (current_cpu);
line_alignment = cache->line_size - 1;
read_address = address & ~line_alignment;
read_data_from_memory (current_cpu, read_address, tag->line,