arch, cpu: Add a takeOverFrom method for switching ISAs
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Tue, 7 Apr 2020 12:57:13 +0000 (13:57 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Wed, 15 Apr 2020 07:34:09 +0000 (07:34 +0000)
commitb4f9e0a02f48205ba39374bfb7e37e2d59841aae
tree02caee564887c28c0e27b7c318962b84a66ce114
parentd30068d5387dc4f7550606ea4d3eb2b6d55a02ce
arch, cpu: Add a takeOverFrom method for switching ISAs

This will be used by architectures to handle the m5.switchCpus at the
ISA level since some ISA specific fields might need to be aware of the
TC change.

Change-Id: If8d50c5c80bc3458d5f1d14cf93ae107314c98cf
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27712
Reviewed-by: Ciro Santilli <ciro.santilli@arm.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/generic/isa.hh
src/cpu/o3/thread_context_impl.hh
src/cpu/simple_thread.cc