mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 19:50:13 +08:00
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.
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user