forked from Imagelibrary/binutils-gdb
sim: mcore: fix -Wunused-variable warnings
This commit is contained in:
@@ -303,9 +303,8 @@ step_once (SIM_DESC sd, SIM_CPU *cpu)
|
||||
int memops;
|
||||
int bonus_cycles;
|
||||
int insts;
|
||||
int w;
|
||||
int cycs;
|
||||
#ifdef WATCHFUNCTIONS
|
||||
int w;
|
||||
int32_t WLhash;
|
||||
#endif
|
||||
|
||||
@@ -356,8 +355,8 @@ step_once (SIM_DESC sd, SIM_CPU *cpu)
|
||||
|
||||
if ((WLincyc == 1) && (pc == WLendpc))
|
||||
{
|
||||
cycs = (mcore_cpu->cycles + (insts + bonus_cycles +
|
||||
(memops * memcycles)) - WLbcyc);
|
||||
int cycs = (mcore_cpu->cycles + (insts + bonus_cycles +
|
||||
(memops * memcycles)) - WLbcyc);
|
||||
|
||||
if (WLcnts[WLW] == 1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user