diff options
author | Andreas Sandberg <andreas.sandberg@arm.com> | 2018-06-08 17:20:40 +0100 |
---|---|---|
committer | Andreas Sandberg <andreas.sandberg@arm.com> | 2018-06-14 12:54:47 +0000 |
commit | 13f99bed870126fcde1070904d94f3041b64b190 (patch) | |
tree | 05c11d48e2eb6e215c37e0073b61e8386ca25081 /src/cpu | |
parent | 8c45a7f8d3d4fb595169e28f1e0f9e8822e361c4 (diff) | |
download | gem5-13f99bed870126fcde1070904d94f3041b64b190.tar.xz |
cpu-minor: Remove redundant thread startup call
Don't call startup() twice on each of the threads.
Change-Id: Ibe3d1f25c4fdff291ee310abb9bcad3b184bab20
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/11037
Diffstat (limited to 'src/cpu')
-rw-r--r-- | src/cpu/minor/cpu.cc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/cpu/minor/cpu.cc b/src/cpu/minor/cpu.cc index 68c07675f..63efde2dc 100644 --- a/src/cpu/minor/cpu.cc +++ b/src/cpu/minor/cpu.cc @@ -183,9 +183,6 @@ MinorCPU::startup() BaseCPU::startup(); - for (auto i = threads.begin(); i != threads.end(); i ++) - (*i)->startup(); - for (ThreadID tid = 0; tid < numThreads; tid++) { threads[tid]->startup(); pipeline->wakeupFetch(tid); |