utility.cc (5647:b06b49498c79) utility.cc (5648:e8abda6e0980)
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 *

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

262
263 Interrupts * interrupts = dynamic_cast<Interrupts *>(
264 tc->getCpuPtr()->getInterruptController());
265 assert(interrupts);
266
267 interrupts->setRegNoEffect(APIC_ID, cpuId << 24);
268
269 interrupts->setRegNoEffect(APIC_VERSION, (5 << 16) | 0x14);
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 *

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

262
263 Interrupts * interrupts = dynamic_cast<Interrupts *>(
264 tc->getCpuPtr()->getInterruptController());
265 assert(interrupts);
266
267 interrupts->setRegNoEffect(APIC_ID, cpuId << 24);
268
269 interrupts->setRegNoEffect(APIC_VERSION, (5 << 16) | 0x14);
270
271 interrupts->setClock(tc->getCpuPtr()->ticks(16));
270
271 // TODO Set the SMRAM base address (SMBASE) to 0x00030000
272
273 tc->setMiscReg(MISCREG_VM_CR, 0);
274 tc->setMiscReg(MISCREG_IGNNE, 0);
275 tc->setMiscReg(MISCREG_SMM_CTL, 0);
276 tc->setMiscReg(MISCREG_VM_HSAVE_PA, 0);
277}

--- 26 unchanged lines hidden ---
272
273 // TODO Set the SMRAM base address (SMBASE) to 0x00030000
274
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}

--- 26 unchanged lines hidden ---