pagetable.cc revision 10905
13592Sgblack@eecs.umich.edu/*
25004Sgblack@eecs.umich.edu * Copyright (c) 2006-2007 The Regents of The University of Michigan
33592Sgblack@eecs.umich.edu * All rights reserved.
43592Sgblack@eecs.umich.edu *
53592Sgblack@eecs.umich.edu * Redistribution and use in source and binary forms, with or without
63592Sgblack@eecs.umich.edu * modification, are permitted provided that the following conditions are
73592Sgblack@eecs.umich.edu * met: redistributions of source code must retain the above copyright
83592Sgblack@eecs.umich.edu * notice, this list of conditions and the following disclaimer;
93592Sgblack@eecs.umich.edu * redistributions in binary form must reproduce the above copyright
103592Sgblack@eecs.umich.edu * notice, this list of conditions and the following disclaimer in the
113592Sgblack@eecs.umich.edu * documentation and/or other materials provided with the distribution;
123592Sgblack@eecs.umich.edu * neither the name of the copyright holders nor the names of its
133592Sgblack@eecs.umich.edu * contributors may be used to endorse or promote products derived from
143592Sgblack@eecs.umich.edu * this software without specific prior written permission.
153592Sgblack@eecs.umich.edu *
163592Sgblack@eecs.umich.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
173592Sgblack@eecs.umich.edu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
183592Sgblack@eecs.umich.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
193592Sgblack@eecs.umich.edu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
203592Sgblack@eecs.umich.edu * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
213592Sgblack@eecs.umich.edu * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
223592Sgblack@eecs.umich.edu * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
233592Sgblack@eecs.umich.edu * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
243592Sgblack@eecs.umich.edu * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
253592Sgblack@eecs.umich.edu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
263592Sgblack@eecs.umich.edu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
273592Sgblack@eecs.umich.edu *
283592Sgblack@eecs.umich.edu * Authors: Gabe Black
293592Sgblack@eecs.umich.edu */
303592Sgblack@eecs.umich.edu
313592Sgblack@eecs.umich.edu#include "arch/alpha/pagetable.hh"
323592Sgblack@eecs.umich.edu#include "sim/serialize.hh"
333592Sgblack@eecs.umich.edu
345569Snate@binkert.orgnamespace AlphaISA {
355569Snate@binkert.org
365569Snate@binkert.orgvoid
3710905Sandreas.sandberg@arm.comTlbEntry::serialize(CheckpointOut &cp) const
383592Sgblack@eecs.umich.edu{
395569Snate@binkert.org    SERIALIZE_SCALAR(tag);
405569Snate@binkert.org    SERIALIZE_SCALAR(ppn);
415569Snate@binkert.org    SERIALIZE_SCALAR(xre);
425569Snate@binkert.org    SERIALIZE_SCALAR(xwe);
435569Snate@binkert.org    SERIALIZE_SCALAR(asn);
445569Snate@binkert.org    SERIALIZE_SCALAR(asma);
455569Snate@binkert.org    SERIALIZE_SCALAR(fonr);
465569Snate@binkert.org    SERIALIZE_SCALAR(fonw);
475569Snate@binkert.org    SERIALIZE_SCALAR(valid);
485569Snate@binkert.org}
493592Sgblack@eecs.umich.edu
505569Snate@binkert.orgvoid
5110905Sandreas.sandberg@arm.comTlbEntry::unserialize(CheckpointIn &cp)
525569Snate@binkert.org{
535569Snate@binkert.org    UNSERIALIZE_SCALAR(tag);
545569Snate@binkert.org    UNSERIALIZE_SCALAR(ppn);
555569Snate@binkert.org    UNSERIALIZE_SCALAR(xre);
565569Snate@binkert.org    UNSERIALIZE_SCALAR(xwe);
575569Snate@binkert.org    UNSERIALIZE_SCALAR(asn);
585569Snate@binkert.org    UNSERIALIZE_SCALAR(asma);
595569Snate@binkert.org    UNSERIALIZE_SCALAR(fonr);
605569Snate@binkert.org    UNSERIALIZE_SCALAR(fonw);
615569Snate@binkert.org    UNSERIALIZE_SCALAR(valid);
623592Sgblack@eecs.umich.edu}
635569Snate@binkert.org
647811Ssteve.reinhardt@amd.com} // namespace AlphaISA
65