projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70b920e
)
sim: or1k: fix iterator typo when setting up cpus
author
Mike Frysinger
<vapier@gentoo.org>
Sun, 25 Dec 2022 05:31:19 +0000
(
00:31
-0500)
committer
Mike Frysinger
<vapier@gentoo.org>
Sun, 25 Dec 2022 07:09:18 +0000
(
02:09
-0500)
This code loops over available cpus with "c", but then looks up the
cpu with "i". Fix the typo so the code works correctly with smp.
sim/or1k/sim-if.c
patch
|
blob
|
history
diff --git
a/sim/or1k/sim-if.c
b/sim/or1k/sim-if.c
index d698d7035bf7fdf8ce66547c7a7326eff54ade45..799812bb741e249c0023a5df11d23a46838702fc 100644
(file)
--- a/
sim/or1k/sim-if.c
+++ b/
sim/or1k/sim-if.c
@@
-244,7
+244,7
@@
sim_open (SIM_OPEN_KIND kind, host_callback *callback, struct bfd *abfd,
}
/* Do some final OpenRISC sim specific initializations. */
- for (
c = 0; c < MAX_NR_PROCESSORS; ++c
)
+ for (
i = 0; i < MAX_NR_PROCESSORS; ++i
)
{
SIM_CPU *cpu = STATE_CPU (sd, i);
/* Only needed for profiling, but the structure member is small. */