From 42e788885573d2294877c73f83dbf539e4bac10f Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Wed, 4 May 2011 20:38:28 -0500 Subject: ARM: Add support for loading the a bootloader and configuring parameters for it --- src/arch/arm/linux/system.cc | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/arch/arm/linux') 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() -- cgit v1.2.3