utility.cc (9423:43caa4ca5979) utility.cc (9544:1a075d9bc1bc)
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * Copyright (c) 2011 Advanced Micro Devices, Inc.
4 * All rights reserved.
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

--- 160 unchanged lines hidden (view full) ---

169 Interrupts * interrupts = dynamic_cast<Interrupts *>(
170 tc->getCpuPtr()->getInterruptController());
171 assert(interrupts);
172
173 interrupts->setRegNoEffect(APIC_ID, cpuId << 24);
174
175 interrupts->setRegNoEffect(APIC_VERSION, (5 << 16) | 0x14);
176
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * Copyright (c) 2011 Advanced Micro Devices, Inc.
4 * All rights reserved.
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

--- 160 unchanged lines hidden (view full) ---

169 Interrupts * interrupts = dynamic_cast<Interrupts *>(
170 tc->getCpuPtr()->getInterruptController());
171 assert(interrupts);
172
173 interrupts->setRegNoEffect(APIC_ID, cpuId << 24);
174
175 interrupts->setRegNoEffect(APIC_VERSION, (5 << 16) | 0x14);
176
177 // @todo: Control the relative frequency, in this case 16:1, of
178 // the clocks in the Python code
179 interrupts->setClock(tc->getCpuPtr()->clockPeriod() * 16);
180
181 // TODO Set the SMRAM base address (SMBASE) to 0x00030000
182
183 tc->setMiscReg(MISCREG_VM_CR, 0);
184 tc->setMiscReg(MISCREG_IGNNE, 0);
185 tc->setMiscReg(MISCREG_SMM_CTL, 0);
186 tc->setMiscReg(MISCREG_VM_HSAVE_PA, 0);
187}
188

--- 52 unchanged lines hidden ---
177 // TODO Set the SMRAM base address (SMBASE) to 0x00030000
178
179 tc->setMiscReg(MISCREG_VM_CR, 0);
180 tc->setMiscReg(MISCREG_IGNNE, 0);
181 tc->setMiscReg(MISCREG_SMM_CTL, 0);
182 tc->setMiscReg(MISCREG_VM_HSAVE_PA, 0);
183}
184

--- 52 unchanged lines hidden ---