Searched hist:10946 (Results 1 - 1 of 1) sorted by relevance
/gem5/src/cpu/minor/ | ||
H A D | cpu.cc | 10946:6f10e35b57d1 Thu Jul 30 05:15:00 EDT 2015 Andreas Sandberg <andreas.sandberg@arm.com> cpu: Only activate thread 0 in Minor if the CPU is active Minor currently activates thread 0 in startup() to work around an issue where activateContext() is called from LiveProcess before the process entry point is known. When activateContext() is called, Minor creates a branch instruction to the process's entry point. The first time it is called, the branch points to an undefined location (0). The call in startup() updates the branch to point to the actual entry point. When instantiating a switched out Minor CPU, it still tries to activate thread 0. This is clearly incorrect since a switched out CPU can't have any active threads. This changeset adds a check to ensure that the thread is active before reactivating it. |
Completed in 9 milliseconds