arch: Add a virtual method to the BaseISA to reset its ThreadContext.
This will be used as part of a generic CPU reset mechanism. Change-Id: I010f6bdaca0cbb6be1799ccdc345c4828515209d Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/67572 Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Maintainer: Gabe Black <gabeblack@google.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -43,6 +43,7 @@
|
||||
#include <vector>
|
||||
|
||||
#include "arch/generic/pcstate.hh"
|
||||
#include "base/logging.hh"
|
||||
#include "cpu/reg_class.hh"
|
||||
#include "mem/packet.hh"
|
||||
#include "mem/request.hh"
|
||||
@@ -83,6 +84,8 @@ class BaseISA : public SimObject
|
||||
virtual bool inUserMode() const = 0;
|
||||
virtual void copyRegsFrom(ThreadContext *src) = 0;
|
||||
|
||||
virtual void resetThread() { panic("Thread reset not implemented."); }
|
||||
|
||||
const RegClasses ®Classes() const { return _regClasses; }
|
||||
|
||||
// Locked memory handling functions.
|
||||
|
||||
Reference in New Issue
Block a user