sim: or1k: 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:
parent
70b920ed09
commit
46ebce9b9c
1 changed files with 1 additions and 1 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Reference in a new issue