mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 18:14:13 +08:00
sim: frv: fix -Wshadow=local warnings
Delete redundant decls, and rename conflicting vars.
This commit is contained in:
parent
a4531a4010
commit
9b5e6c1e48
@ -887,7 +887,6 @@ set_exception_status_registers (
|
||||
break;
|
||||
default:
|
||||
{
|
||||
SIM_DESC sd = CPU_STATE (current_cpu);
|
||||
IADDR pc = CPU_PC_GET (current_cpu);
|
||||
sim_engine_abort (sd, current_cpu, pc,
|
||||
"invalid non-strict program interrupt kind: %d\n",
|
||||
|
@ -212,9 +212,9 @@ frv_option_handler (SIM_DESC sd, sim_cpu *current_cpu, int opt,
|
||||
}
|
||||
for (i = 0; i < MAX_NR_PROCESSORS; ++i)
|
||||
{
|
||||
SIM_CPU *current_cpu = STATE_CPU (sd, i);
|
||||
FRV_CACHE *insn_cache = CPU_INSN_CACHE (current_cpu);
|
||||
FRV_CACHE *data_cache = CPU_DATA_CACHE (current_cpu);
|
||||
SIM_CPU *cpu = STATE_CPU (sd, i);
|
||||
FRV_CACHE *insn_cache = CPU_INSN_CACHE (cpu);
|
||||
FRV_CACHE *data_cache = CPU_DATA_CACHE (cpu);
|
||||
insn_cache->memory_latency = cycles;
|
||||
data_cache->memory_latency = cycles;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user