diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-12-25 00:48:30 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-12-25 02:10:46 -0500 |
commit | 21a0fa89d25d2d12c3d1c3a477e8f49efff430df (patch) | |
tree | 6099423ce7b4ecdabeee82b42c240311405cf99c | |
parent | 8290c8b5dd38636b2448a53f3de4555b7acad3a7 (diff) | |
download | gdb-21a0fa89d25d2d12c3d1c3a477e8f49efff430df.zip gdb-21a0fa89d25d2d12c3d1c3a477e8f49efff430df.tar.gz gdb-21a0fa89d25d2d12c3d1c3a477e8f49efff430df.tar.bz2 |
sim: m32r: fix iterator typo when setting up cpus
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.
-rw-r--r-- | sim/m32r/sim-if.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/m32r/sim-if.c b/sim/m32r/sim-if.c index c8c04b3..7fe6b42 100644 --- 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, |