base: If valgrind is available, tell it about Fiber stacks.
authorGabe Black <gabeblack@google.com>
Wed, 22 Aug 2018 23:49:22 +0000 (16:49 -0700)
committerGabe Black <gabeblack@google.com>
Fri, 24 Aug 2018 18:15:09 +0000 (18:15 +0000)
commita3385dadcb0ffb53da32d2690c0ea8157e2419bd
tree9af7ab099183937a851be9124961e4c26f5e7374
parentf741bb7cdbdd6c2526be40fe1e03a705364ddf8d
base: If valgrind is available, tell it about Fiber stacks.

Valgrind can get confused when  switching stacks between different
Fibers. If valgrind (and its headers) are available, this change adds
calls to some hooks so valgrind knows where the new stacks are and
doesn't report a bunch of false positives.

Change-Id: I00aefe60372be6de7371dec29427d7182dbee7b6
Reviewed-on: https://gem5-review.googlesource.com/12227
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Maintainer: Gabe Black <gabeblack@google.com>
SConstruct
src/base/fiber.cc
src/base/fiber.hh