11782SN/A/* 21782SN/A * Copyright (c) 2004-2005 The Regents of The University of Michigan 31782SN/A * All rights reserved. 41782SN/A * 51782SN/A * Redistribution and use in source and binary forms, with or without 61782SN/A * modification, are permitted provided that the following conditions are 71782SN/A * met: redistributions of source code must retain the above copyright 81782SN/A * notice, this list of conditions and the following disclaimer; 91782SN/A * redistributions in binary form must reproduce the above copyright 101782SN/A * notice, this list of conditions and the following disclaimer in the 111782SN/A * documentation and/or other materials provided with the distribution; 121782SN/A * neither the name of the copyright holders nor the names of its 131782SN/A * contributors may be used to endorse or promote products derived from 141782SN/A * this software without specific prior written permission. 151782SN/A * 161782SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 171782SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 181782SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 191782SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 201782SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 211782SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 221782SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 231782SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 241782SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 251782SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 261782SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 272665Ssaidi@eecs.umich.edu * 282665Ssaidi@eecs.umich.edu * Authors: Ben Nash 291782SN/A */ 301782SN/A 314762Snate@binkert.org#ifndef __ARCH_ALPHA_FREEBSD_SYSTEM_HH__ 324762Snate@binkert.org#define __ARCH_ALPHA_FREEBSD_SYSTEM_HH__ 331782SN/A 344762Snate@binkert.org#include "arch/alpha/system.hh" 351885SN/A#include "kern/system_events.hh" 364762Snate@binkert.org#include "params/FreebsdAlphaSystem.hh" 374762Snate@binkert.org#include "sim/system.hh" 381782SN/A 392212SN/Aclass FreebsdAlphaSystem : public AlphaSystem 401782SN/A{ 411782SN/A private: 421885SN/A class SkipCalibrateClocksEvent : public SkipFuncEvent 431885SN/A { 441885SN/A public: 451885SN/A SkipCalibrateClocksEvent(PCEventQueue *q, const std::string &desc, 461885SN/A Addr addr) 471885SN/A : SkipFuncEvent(q, desc, addr) {} 482680Sktlim@umich.edu virtual void process(ThreadContext *tc); 491885SN/A }; 501885SN/A 511782SN/A SkipFuncEvent *skipDelayEvent; 521885SN/A SkipCalibrateClocksEvent *skipCalibrateClocks; 531821SN/A 541782SN/A public: 554762Snate@binkert.org typedef FreebsdAlphaSystemParams Params; 562212SN/A FreebsdAlphaSystem(Params *p); 572212SN/A ~FreebsdAlphaSystem(); 584762Snate@binkert.org 592680Sktlim@umich.edu void doCalibrateClocks(ThreadContext *tc); 601782SN/A}; 611782SN/A 624762Snate@binkert.org#endif // __ARCH_ALPHA_FREEBSD_SYSTEM_HH__ 63