system.hh revision 2665
12381SN/A/*
22592SN/A * Copyright (c) 2004-2005 The Regents of The University of Michigan
37465Ssteve.reinhardt@amd.com * All rights reserved.
42381SN/A *
52381SN/A * Redistribution and use in source and binary forms, with or without
62381SN/A * modification, are permitted provided that the following conditions are
72381SN/A * met: redistributions of source code must retain the above copyright
82381SN/A * notice, this list of conditions and the following disclaimer;
92381SN/A * redistributions in binary form must reproduce the above copyright
102381SN/A * notice, this list of conditions and the following disclaimer in the
112381SN/A * documentation and/or other materials provided with the distribution;
122381SN/A * neither the name of the copyright holders nor the names of its
132381SN/A * contributors may be used to endorse or promote products derived from
142381SN/A * this software without specific prior written permission.
152381SN/A *
162381SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
172381SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
182381SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
192381SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
202381SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
212381SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
222381SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
232381SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
242381SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
252381SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
262381SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
272381SN/A *
282665Ssaidi@eecs.umich.edu * Authors: Ben Nash
292665Ssaidi@eecs.umich.edu */
302665Ssaidi@eecs.umich.edu
312665Ssaidi@eecs.umich.edu#ifndef __KERN_FREEBSD_FREEBSD_SYSTEM_HH__
322381SN/A#define __KERN_FREEBSD_FREEBSD_SYSTEM_HH__
332381SN/A
342381SN/A#include "kern/system_events.hh"
352381SN/A
362662Sstever@eecs.umich.educlass FreebsdAlphaSystem : public AlphaSystem
372381SN/A{
382381SN/A  private:
392381SN/A    class SkipCalibrateClocksEvent : public SkipFuncEvent
402381SN/A    {
412381SN/A      public:
423348Sbinkertn@umich.edu        SkipCalibrateClocksEvent(PCEventQueue *q, const std::string &desc,
433348Sbinkertn@umich.edu                                 Addr addr)
444022Sstever@eecs.umich.edu            : SkipFuncEvent(q, desc, addr) {}
453348Sbinkertn@umich.edu        virtual void process(ExecContext *xc);
465735Snate@binkert.org    };
474024Sbinkertn@umich.edu
484610Ssaidi@eecs.umich.edu    SkipFuncEvent *skipDelayEvent;
495735Snate@binkert.org    SkipCalibrateClocksEvent *skipCalibrateClocks;
503940Ssaidi@eecs.umich.edu
515314Sstever@gmail.com  public:
526216Snate@binkert.org    FreebsdAlphaSystem(Params *p);
532392SN/A    ~FreebsdAlphaSystem();
544167Sbinkertn@umich.edu    void doCalibrateClocks(ExecContext *xc);
552394SN/A
562394SN/A};
573349Sbinkertn@umich.edu
582394SN/A#endif // __KERN_FREEBSD_FREEBSD_SYSTEM_HH__
592812Srdreslin@umich.edu