projects
/
platform
/
upstream
/
binutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
568b2f9
)
sim: mcore: fix -Wunused-variable warnings
author
Mike Frysinger
<vapier@gentoo.org>
Sat, 16 Dec 2023 03:20:48 +0000
(22:20 -0500)
committer
Mike Frysinger
<vapier@gentoo.org>
Tue, 19 Dec 2023 10:51:10 +0000
(
05:51
-0500)
sim/mcore/interp.c
patch
|
blob
|
history
diff --git
a/sim/mcore/interp.c
b/sim/mcore/interp.c
index
94e0a16
..
b0c2cc2
100644
(file)
--- a/
sim/mcore/interp.c
+++ b/
sim/mcore/interp.c
@@
-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)
{