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:
8290c8b
)
sim: m32r: fix iterator typo when setting up cpus
author
Mike Frysinger
<vapier@gentoo.org>
Sun, 25 Dec 2022 05:48:30 +0000
(
00:48
-0500)
committer
Mike Frysinger
<vapier@gentoo.org>
Sun, 25 Dec 2022 07:10:46 +0000
(
02:10
-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/m32r/sim-if.c
patch
|
blob
|
history
diff --git
a/sim/m32r/sim-if.c
b/sim/m32r/sim-if.c
index c8c04b38b68a96034cc535d512131d851dd1c435..7fe6b42801e75646b0da4d24c8bb09795fcaec99 100644
(file)
--- a/
sim/m32r/sim-if.c
+++ b/
sim/m32r/sim-if.c
@@
-134,7
+134,7
@@
sim_open (SIM_OPEN_KIND kind, host_callback *callback, struct bfd *abfd,
m32r_cgen_init_dis (cd);
}
- for (
c = 0; c < MAX_NR_PROCESSORS; ++c
)
+ for (
i = 0; i < MAX_NR_PROCESSORS; ++i
)
{
/* Only needed for profiling, but the structure member is small. */
memset (CPU_M32R_MISC_PROFILE (STATE_CPU (sd, i)), 0,