tsunami_pchip.cc (10565:23593fdaadcd) tsunami_pchip.cc (10905:a6ca6831e775)
1/*
2 * Copyright (c) 2004-2005 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;

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

319
320Addr
321TsunamiPChip::calcMemAddr(Addr addr)
322{
323 return TSUNAMI_PCI0_MEMORY + addr;
324}
325
326void
1/*
2 * Copyright (c) 2004-2005 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;

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

319
320Addr
321TsunamiPChip::calcMemAddr(Addr addr)
322{
323 return TSUNAMI_PCI0_MEMORY + addr;
324}
325
326void
327TsunamiPChip::serialize(std::ostream &os)
327TsunamiPChip::serialize(CheckpointOut &cp) const
328{
329 SERIALIZE_SCALAR(pctl);
330 SERIALIZE_ARRAY(wsba, 4);
331 SERIALIZE_ARRAY(wsm, 4);
332 SERIALIZE_ARRAY(tba, 4);
333}
334
335void
328{
329 SERIALIZE_SCALAR(pctl);
330 SERIALIZE_ARRAY(wsba, 4);
331 SERIALIZE_ARRAY(wsm, 4);
332 SERIALIZE_ARRAY(tba, 4);
333}
334
335void
336TsunamiPChip::unserialize(Checkpoint *cp, const std::string &section)
336TsunamiPChip::unserialize(CheckpointIn &cp)
337{
338 UNSERIALIZE_SCALAR(pctl);
339 UNSERIALIZE_ARRAY(wsba, 4);
340 UNSERIALIZE_ARRAY(wsm, 4);
341 UNSERIALIZE_ARRAY(tba, 4);
342}
343
344
345TsunamiPChip *
346TsunamiPChipParams::create()
347{
348 return new TsunamiPChip(this);
349}
337{
338 UNSERIALIZE_SCALAR(pctl);
339 UNSERIALIZE_ARRAY(wsba, 4);
340 UNSERIALIZE_ARRAY(wsm, 4);
341 UNSERIALIZE_ARRAY(tba, 4);
342}
343
344
345TsunamiPChip *
346TsunamiPChipParams::create()
347{
348 return new TsunamiPChip(this);
349}