1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 3 * All rights reserved. 4 * 5 * Redistribution and use of this software in source and binary forms, 6 * with or without modification, are permitted provided that the 7 * following conditions are met: 8 * --- 266 unchanged lines hidden (view full) --- 275 tc->setMiscReg(MISCREG_VM_CR, 0); 276 tc->setMiscReg(MISCREG_IGNNE, 0); 277 tc->setMiscReg(MISCREG_SMM_CTL, 0); 278 tc->setMiscReg(MISCREG_VM_HSAVE_PA, 0); 279} 280 281#endif 282 |
283void startupCPU(ThreadContext *tc, int cpuId) 284{ |
285#if FULL_SYSTEM |
286 if (cpuId == 0) { 287 tc->activate(0); 288 } else { 289 // This is an application processor (AP). It should be initialized to 290 // look like only the BIOS POST has run on it and put then put it into 291 // a halted state. |
292 tc->suspend(0); |
293 } |
294#else |
295 tc->activate(0); |
296#endif |
297} 298 |
299} //namespace X86_ISA |