base: Add an asymmetrical Coroutine class
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Thu, 14 Jun 2018 10:37:20 +0000 (11:37 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Thu, 28 Jun 2018 09:15:27 +0000 (09:15 +0000)
commita77222f8d0b09497c8ce6a085c81f3960da9d5f4
tree8f19952b88a99a0d93067e75b13e7db8c694ccf0
parent90d448080e283a6ba4aca7677b985d4807a40476
base: Add an asymmetrical Coroutine class

This patch is providing gem5 a Coroutine class to be used for
instantiating asymmetrical coroutines. Coroutines are built on top of
gem5 fibers, which makes them ucontext based.

Change-Id: I7bb673a954d4a456997afd45b696933534f3e239
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/11195
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/base/SConscript
src/base/coroutine.hh [new file with mode: 0644]
src/base/coroutinetest.cc [new file with mode: 0644]