arch: Make the ISA class inherit from SimObject
authorAndreas Sandberg <Andreas.Sandberg@arm.com>
Mon, 7 Jan 2013 18:05:35 +0000 (13:05 -0500)
committerAndreas Sandberg <Andreas.Sandberg@arm.com>
Mon, 7 Jan 2013 18:05:35 +0000 (13:05 -0500)
commit3db3f83a5ea4b9565db1ab6b22d18e2b33ecef98
treea736f3746d5c38bdc98d6fb8589113556271d486
parent69d419f31383ac7801e1debb62d5bbf7cb899e3c
arch: Make the ISA class inherit from SimObject

The ISA class on stores the contents of ID registers on many
architectures. In order to make reset values of such registers
configurable, we make the class inherit from SimObject, which allows
us to use the normal generated parameter headers.

This patch introduces a Python helper method, BaseCPU.createThreads(),
which creates a set of ISAs for each of the threads in an SMT
system. Although it is currently only needed when creating
multi-threaded CPUs, it should always be called before instantiating
the system as this is an obvious place to configure ID registers
identifying a thread/CPU.
46 files changed:
configs/example/fs.py
configs/example/ruby_fs.py
configs/example/se.py
src/arch/alpha/AlphaISA.py [new file with mode: 0644]
src/arch/alpha/SConscript
src/arch/alpha/isa.cc
src/arch/alpha/isa.hh
src/arch/arm/ArmISA.py [new file with mode: 0644]
src/arch/arm/SConscript
src/arch/arm/isa.cc
src/arch/arm/isa.hh
src/arch/mips/MipsISA.py [new file with mode: 0644]
src/arch/mips/SConscript
src/arch/mips/isa.cc
src/arch/mips/isa.hh
src/arch/power/PowerISA.py [new file with mode: 0644]
src/arch/power/SConscript
src/arch/power/isa.cc [new file with mode: 0644]
src/arch/power/isa.hh
src/arch/sparc/SConscript
src/arch/sparc/SparcISA.py [new file with mode: 0644]
src/arch/sparc/isa.cc
src/arch/sparc/isa.hh
src/arch/x86/SConscript
src/arch/x86/X86ISA.py [new file with mode: 0644]
src/arch/x86/isa.cc
src/arch/x86/isa.hh
src/cpu/BaseCPU.py
src/cpu/base.cc
src/cpu/checker/cpu.cc
src/cpu/dummy_checker.cc
src/cpu/inorder/cpu.cc
src/cpu/inorder/cpu.hh
src/cpu/inorder/thread_context.cc
src/cpu/inorder/thread_context.hh
src/cpu/o3/checker.cc
src/cpu/o3/cpu.cc
src/cpu/o3/cpu.hh
src/cpu/o3/thread_context_impl.hh
src/cpu/ozone/checker_builder.cc
src/cpu/ozone/cpu_builder.cc
src/cpu/ozone/simple_cpu_builder.cc
src/cpu/simple/base.cc
src/cpu/simple_thread.cc
src/cpu/simple_thread.hh
tests/run.py