cpu,o3: Fixed checkpointing bug occuring in the o3 CPU
authorAnouk Van Laer <anouk.vanlaer@arm.com>
Thu, 6 Apr 2017 14:38:07 +0000 (15:38 +0100)
committerAnouk Van Laer <anouk.vanlaer@arm.com>
Mon, 17 Jul 2017 17:50:52 +0000 (17:50 +0000)
commitdb522eb930020a7a9caf1ea6e289fc81a0bcc842
tree368fb65a256a1231291ac06975491b377f689b87
parenteeb8ade6c25feacbccc6bfce3ad07077b668bd89
cpu,o3: Fixed checkpointing bug occuring in the o3 CPU

Checkpointing a system with out-of-order CPUs might get stuck if
one of the CPUs has been put to sleep. The quiesce instruction
cannot get drained hence checkpointing never finishes.

This commit resolves that by activating all suspended thread
contexts when draining the system.

Change-Id: I817ab1672b4ead777bd8e12a0445829481c46fdc
Reviewed-by: Sascha Bischoff <sascha.bischoff@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/3970
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
src/cpu/o3/cpu.cc