misc: pass ThreadContext on ISA clear
authorAdrian Herrera <adrian.herrera@arm.com>
Mon, 9 Dec 2019 09:53:12 +0000 (09:53 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Wed, 19 Feb 2020 17:32:46 +0000 (17:32 +0000)
commitd266a37e5e92a0a6a7f41618150de3835cd6ac30
treefe7c652298c19c81ac93ff2bdde051814259e7dd
parent2235168b72537535d74c645a70a85479801e0651
misc: pass ThreadContext on ISA clear

This patch changes the clear API for the ISAs to pass the ThreadContext
issuing the call. This allows the ISA to carry out maintainance
operations on the TC state.

Change-Id: I40d6cf39c321521a221146aa0fd8f2cf665d39c6
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25465
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/arm/isa.hh
src/arch/mips/isa.hh
src/arch/power/isa.hh
src/arch/riscv/isa.hh
src/arch/sparc/isa.hh
src/arch/x86/isa.hh
src/cpu/o3/thread_context_impl.hh
src/cpu/simple_thread.hh