diff options
author | Chander Sudanthi <chander.sudanthi@arm.com> | 2011-05-13 17:27:00 -0500 |
---|---|---|
committer | Chander Sudanthi <chander.sudanthi@arm.com> | 2011-05-13 17:27:00 -0500 |
commit | 5299c75e62832aab2e200b22c73865ed9c51b335 (patch) | |
tree | d439efab806ba35c1bc8cfee0b0a01656a5d513a /src/arch/arm/system.cc | |
parent | b79650ceaaabb87f9bfe145663e2bfa3281ed7df (diff) | |
download | gem5-5299c75e62832aab2e200b22c73865ed9c51b335.tar.xz |
ARM: Better RealView/Versatile EB platform support.
Add registers and components to better support the VersatileEB board.
Made the MIDR and SYS_ID register parameters to ArmSystem and RealviewCtrl
respectively.
Diffstat (limited to 'src/arch/arm/system.cc')
-rw-r--r-- | src/arch/arm/system.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/arch/arm/system.cc b/src/arch/arm/system.cc index 8431bfff2..4d4dff4d9 100644 --- a/src/arch/arm/system.cc +++ b/src/arch/arm/system.cc @@ -104,6 +104,13 @@ ArmSystem::initState() // Set the initial PC to be at start of the kernel code threadContexts[0]->pcState(kernelEntry & loadAddrMask); } + for (int i = 0; i < threadContexts.size(); i++) { + if (params()->midr_regval) { + threadContexts[i]->setMiscReg(ArmISA::MISCREG_MIDR, + params()->midr_regval); + } + } + } ArmSystem::~ArmSystem() |