pagetable.cc revision 11793
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" 3211793Sbrandon.potter@amd.com 333592Sgblack@eecs.umich.edu#include "sim/serialize.hh" 343592Sgblack@eecs.umich.edu 355569Snate@binkert.orgnamespace AlphaISA { 365569Snate@binkert.org 375569Snate@binkert.orgvoid 3810905Sandreas.sandberg@arm.comTlbEntry::serialize(CheckpointOut &cp) const 393592Sgblack@eecs.umich.edu{ 405569Snate@binkert.org SERIALIZE_SCALAR(tag); 415569Snate@binkert.org SERIALIZE_SCALAR(ppn); 425569Snate@binkert.org SERIALIZE_SCALAR(xre); 435569Snate@binkert.org SERIALIZE_SCALAR(xwe); 445569Snate@binkert.org SERIALIZE_SCALAR(asn); 455569Snate@binkert.org SERIALIZE_SCALAR(asma); 465569Snate@binkert.org SERIALIZE_SCALAR(fonr); 475569Snate@binkert.org SERIALIZE_SCALAR(fonw); 485569Snate@binkert.org SERIALIZE_SCALAR(valid); 495569Snate@binkert.org} 503592Sgblack@eecs.umich.edu 515569Snate@binkert.orgvoid 5210905Sandreas.sandberg@arm.comTlbEntry::unserialize(CheckpointIn &cp) 535569Snate@binkert.org{ 545569Snate@binkert.org UNSERIALIZE_SCALAR(tag); 555569Snate@binkert.org UNSERIALIZE_SCALAR(ppn); 565569Snate@binkert.org UNSERIALIZE_SCALAR(xre); 575569Snate@binkert.org UNSERIALIZE_SCALAR(xwe); 585569Snate@binkert.org UNSERIALIZE_SCALAR(asn); 595569Snate@binkert.org UNSERIALIZE_SCALAR(asma); 605569Snate@binkert.org UNSERIALIZE_SCALAR(fonr); 615569Snate@binkert.org UNSERIALIZE_SCALAR(fonw); 625569Snate@binkert.org UNSERIALIZE_SCALAR(valid); 633592Sgblack@eecs.umich.edu} 645569Snate@binkert.org 657811Ssteve.reinhardt@amd.com} // namespace AlphaISA 66