summaryrefslogtreecommitdiff
path: root/src/arch/arm/linux/system.cc
diff options
context:
space:
mode:
authorAli Saidi <Ali.Saidi@ARM.com>2011-05-04 20:38:28 -0500
committerAli Saidi <Ali.Saidi@ARM.com>2011-05-04 20:38:28 -0500
commit42e788885573d2294877c73f83dbf539e4bac10f (patch)
treeb0014c8ed48e9b1b6e07cf008a8379c1aca113a4 /src/arch/arm/linux/system.cc
parent1b505f529142882fa191f1be23e17ee37b6885c9 (diff)
downloadgem5-42e788885573d2294877c73f83dbf539e4bac10f.tar.xz
ARM: Add support for loading the a bootloader and configuring parameters for it
Diffstat (limited to 'src/arch/arm/linux/system.cc')
-rw-r--r--src/arch/arm/linux/system.cc13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/arch/arm/linux/system.cc b/src/arch/arm/linux/system.cc
index 1190a7f3a..445fa2f19 100644
--- a/src/arch/arm/linux/system.cc
+++ b/src/arch/arm/linux/system.cc
@@ -123,15 +123,12 @@ void
LinuxArmSystem::initState()
{
ArmSystem::initState();
- ThreadContext *tc = threadContexts[0];
- // Set the initial PC to be at start of the kernel code
- tc->pcState(tc->getSystemPtr()->kernelEntry & loadAddrMask);
-
- // Setup the machine type
- tc->setIntReg(0, 0);
- tc->setIntReg(1, params()->machine_type);
- tc->setIntReg(2, ParamsList);
+ for (int i = 0; i < threadContexts.size(); i++) {
+ threadContexts[i]->setIntReg(0, 0);
+ threadContexts[i]->setIntReg(1, params()->machine_type);
+ threadContexts[i]->setIntReg(2, ParamsList);
+ }
}
LinuxArmSystem::~LinuxArmSystem()