i82094aa.cc (6803:c647872c6590) i82094aa.cc (7903:7fcfb515d7bf)
1/*
2 * Copyright (c) 2008 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

231
232void
233X86ISA::I82094AA::registerLocalApic(int initialId, Interrupts *localApic)
234{
235 assert(localApic);
236 localApics[initialId] = localApic;
237}
238
1/*
2 * Copyright (c) 2008 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

231
232void
233X86ISA::I82094AA::registerLocalApic(int initialId, Interrupts *localApic)
234{
235 assert(localApic);
236 localApics[initialId] = localApic;
237}
238
239void
240X86ISA::I82094AA::serialize(std::ostream &os)
241{
242 uint64_t* redirTableArray = (uint64_t*)redirTable;
243 SERIALIZE_SCALAR(regSel);
244 SERIALIZE_SCALAR(initialApicId);
245 SERIALIZE_SCALAR(id);
246 SERIALIZE_SCALAR(arbId);
247 SERIALIZE_SCALAR(lowestPriorityOffset);
248 SERIALIZE_ARRAY(redirTableArray, TableSize);
249 SERIALIZE_ARRAY(pinStates, TableSize);
250}
251
252void
253X86ISA::I82094AA::unserialize(Checkpoint *cp, const std::string &section)
254{
255 uint64_t redirTableArray[TableSize];
256 UNSERIALIZE_SCALAR(regSel);
257 UNSERIALIZE_SCALAR(initialApicId);
258 UNSERIALIZE_SCALAR(id);
259 UNSERIALIZE_SCALAR(arbId);
260 UNSERIALIZE_SCALAR(lowestPriorityOffset);
261 UNSERIALIZE_ARRAY(redirTableArray, TableSize);
262 UNSERIALIZE_ARRAY(pinStates, TableSize);
263 for (int i = 0; i < TableSize; i++) {
264 redirTable[i] = (RedirTableEntry)redirTableArray[i];
265 }
266}
267
239X86ISA::I82094AA *
240I82094AAParams::create()
241{
242 return new X86ISA::I82094AA(this);
243}
268X86ISA::I82094AA *
269I82094AAParams::create()
270{
271 return new X86ISA::I82094AA(this);
272}