system.cc (9050:ed4378739b6e) | system.cc (9385:25ebe5e13a07) |
---|---|
1/* 2 * Copyright (c) 2010 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 91 unchanged lines hidden (view full) --- 100 threadContexts[i]->setIntReg(4, params()->gic_cpu_addr); 101 threadContexts[i]->setIntReg(5, params()->flags_addr); 102 threadContexts[i]->setIntReg(7, bootldr->entryPoint()); 103 } 104 } else { 105 // Set the initial PC to be at start of the kernel code 106 threadContexts[0]->pcState(kernelEntry & loadAddrMask); 107 } | 1/* 2 * Copyright (c) 2010 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 91 unchanged lines hidden (view full) --- 100 threadContexts[i]->setIntReg(4, params()->gic_cpu_addr); 101 threadContexts[i]->setIntReg(5, params()->flags_addr); 102 threadContexts[i]->setIntReg(7, bootldr->entryPoint()); 103 } 104 } else { 105 // Set the initial PC to be at start of the kernel code 106 threadContexts[0]->pcState(kernelEntry & loadAddrMask); 107 } |
108 109 for (int i = 0; i < threadContexts.size(); i++) { 110 threadContexts[i]->setMiscReg(ArmISA::MISCREG_MIDR, 111 p->midr_regval); 112 } | |
113} 114 115ArmSystem::~ArmSystem() 116{ 117 if (debugPrintkEvent) 118 delete debugPrintkEvent; 119} 120 121 122ArmSystem * 123ArmSystemParams::create() 124{ 125 return new ArmSystem(this); 126} | 108} 109 110ArmSystem::~ArmSystem() 111{ 112 if (debugPrintkEvent) 113 delete debugPrintkEvent; 114} 115 116 117ArmSystem * 118ArmSystemParams::create() 119{ 120 return new ArmSystem(this); 121} |