system.hh revision 2212
1955SN/A/* 2955SN/A * Copyright (c) 2004-2005 The Regents of The University of Michigan 31762SN/A * All rights reserved. 4955SN/A * 5955SN/A * Redistribution and use in source and binary forms, with or without 6955SN/A * modification, are permitted provided that the following conditions are 7955SN/A * met: redistributions of source code must retain the above copyright 8955SN/A * notice, this list of conditions and the following disclaimer; 9955SN/A * redistributions in binary form must reproduce the above copyright 10955SN/A * notice, this list of conditions and the following disclaimer in the 11955SN/A * documentation and/or other materials provided with the distribution; 12955SN/A * neither the name of the copyright holders nor the names of its 13955SN/A * contributors may be used to endorse or promote products derived from 14955SN/A * this software without specific prior written permission. 15955SN/A * 16955SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 17955SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 18955SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 19955SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 20955SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 21955SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22955SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23955SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24955SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25955SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26955SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27955SN/A */ 282665Ssaidi@eecs.umich.edu 294762Snate@binkert.org#ifndef __KERN_FREEBSD_FREEBSD_SYSTEM_HH__ 30955SN/A#define __KERN_FREEBSD_FREEBSD_SYSTEM_HH__ 314762Snate@binkert.org 32955SN/A#include "kern/system_events.hh" 33955SN/A 344202Sbinkertn@umich.educlass FreebsdAlphaSystem : public AlphaSystem 355342Sstever@gmail.com{ 36955SN/A private: 374381Sbinkertn@umich.edu class SkipCalibrateClocksEvent : public SkipFuncEvent 384381Sbinkertn@umich.edu { 39955SN/A public: 40955SN/A SkipCalibrateClocksEvent(PCEventQueue *q, const std::string &desc, 41955SN/A Addr addr) 424202Sbinkertn@umich.edu : SkipFuncEvent(q, desc, addr) {} 43955SN/A virtual void process(ExecContext *xc); 444382Sbinkertn@umich.edu }; 454382Sbinkertn@umich.edu 464382Sbinkertn@umich.edu SkipFuncEvent *skipDelayEvent; 474762Snate@binkert.org SkipCalibrateClocksEvent *skipCalibrateClocks; 484762Snate@binkert.org 494762Snate@binkert.org public: 504762Snate@binkert.org FreebsdAlphaSystem(Params *p); 514762Snate@binkert.org ~FreebsdAlphaSystem(); 524762Snate@binkert.org void doCalibrateClocks(ExecContext *xc); 534762Snate@binkert.org 544762Snate@binkert.org}; 554762Snate@binkert.org 564762Snate@binkert.org#endif // __KERN_FREEBSD_FREEBSD_SYSTEM_HH__ 574762Snate@binkert.org