summaryrefslogtreecommitdiff
path: root/src/arch/arm/system.cc
diff options
context:
space:
mode:
authorChander Sudanthi <chander.sudanthi@arm.com>2011-05-13 17:27:00 -0500
committerChander Sudanthi <chander.sudanthi@arm.com>2011-05-13 17:27:00 -0500
commit5299c75e62832aab2e200b22c73865ed9c51b335 (patch)
treed439efab806ba35c1bc8cfee0b0a01656a5d513a /src/arch/arm/system.cc
parentb79650ceaaabb87f9bfe145663e2bfa3281ed7df (diff)
downloadgem5-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.cc7
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()