arch,cpu: Make the CPU's ISA parameter type BaseISA.
This is mostly only a superficial change since the isa parameter is then dynamic cast to the ISA specific version inside the various consumers, currently the SimpleThread, O3CPU and Decoder classes. If those aren't being used, for instance in the fast model CPUs, then you can use a different ISA implementation without any type clashes. Change-Id: I2226ef60f9a471ae51b8bfce8683033f7854197a Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25009 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -144,12 +144,12 @@ class SimpleThread : public ThreadState, public ThreadContext
|
||||
// constructor: initialize SimpleThread from given process structure
|
||||
// FS
|
||||
SimpleThread(BaseCPU *_cpu, int _thread_num, System *_system,
|
||||
BaseTLB *_itb, BaseTLB *_dtb, TheISA::ISA *_isa,
|
||||
BaseTLB *_itb, BaseTLB *_dtb, BaseISA *_isa,
|
||||
bool use_kernel_stats = true);
|
||||
// SE
|
||||
SimpleThread(BaseCPU *_cpu, int _thread_num, System *_system,
|
||||
Process *_process, BaseTLB *_itb, BaseTLB *_dtb,
|
||||
TheISA::ISA *_isa);
|
||||
BaseISA *_isa);
|
||||
|
||||
virtual ~SimpleThread() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user