sim,cpu: make exit_group halt all threads in a group
authorTuan Ta <qtt2@cornell.edu>
Mon, 2 Apr 2018 20:21:37 +0000 (16:21 -0400)
committerTuan Ta <qtt2@cornell.edu>
Fri, 8 Feb 2019 15:25:30 +0000 (15:25 +0000)
commitbae0edb0d26dc6c4738855cf38e9a6a109ae8003
tree28d8e6ce42a1bcf2c908542ddaafa37c995461b2
parent72d1d2930fc2b8ef6d32ec2ce2eabbac00684159
sim,cpu: make exit_group halt all threads in a group

When a thread calls exit_group, in addition to halting the thread
itself, it needs to halt all other threads in its group (i.e., threads
sharing the same thread group ID). This patch enables threads to do
that.

Change-Id: Ib2e158fb27cf98843f177a64a2d643b1bbc94d03
Reviewed-on: https://gem5-review.googlesource.com/c/9623
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
src/cpu/o3/cpu.cc
src/sim/syscall_emul.cc
src/sim/system.cc