system.hh revision 1782
112469Sglenn.bergmans@arm.com/* 212469Sglenn.bergmans@arm.com * Copyright (c) 2004-2005 The Regents of The University of Michigan 312469Sglenn.bergmans@arm.com * All rights reserved. 412469Sglenn.bergmans@arm.com * 512469Sglenn.bergmans@arm.com * Redistribution and use in source and binary forms, with or without 612469Sglenn.bergmans@arm.com * modification, are permitted provided that the following conditions are 712469Sglenn.bergmans@arm.com * met: redistributions of source code must retain the above copyright 812469Sglenn.bergmans@arm.com * notice, this list of conditions and the following disclaimer; 912469Sglenn.bergmans@arm.com * redistributions in binary form must reproduce the above copyright 1012469Sglenn.bergmans@arm.com * notice, this list of conditions and the following disclaimer in the 1112469Sglenn.bergmans@arm.com * documentation and/or other materials provided with the distribution; 1212469Sglenn.bergmans@arm.com * neither the name of the copyright holders nor the names of its 1312469Sglenn.bergmans@arm.com * contributors may be used to endorse or promote products derived from 1412469Sglenn.bergmans@arm.com * this software without specific prior written permission. 1512469Sglenn.bergmans@arm.com * 1612469Sglenn.bergmans@arm.com * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1712469Sglenn.bergmans@arm.com * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1812469Sglenn.bergmans@arm.com * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 1912469Sglenn.bergmans@arm.com * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 2012469Sglenn.bergmans@arm.com * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2112469Sglenn.bergmans@arm.com * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2212469Sglenn.bergmans@arm.com * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2312469Sglenn.bergmans@arm.com * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2412469Sglenn.bergmans@arm.com * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2512469Sglenn.bergmans@arm.com * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 2612469Sglenn.bergmans@arm.com * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2712469Sglenn.bergmans@arm.com */ 2812469Sglenn.bergmans@arm.com 2912469Sglenn.bergmans@arm.com#ifndef __KERN_FREEBSD_FREEBSD_SYSTEM_HH__ 3012469Sglenn.bergmans@arm.com#define __KERN_FREEBSD_FREEBSD_SYSTEM_HH__ 3112469Sglenn.bergmans@arm.com 3212469Sglenn.bergmans@arm.com#include "sim/host.hh" 3312469Sglenn.bergmans@arm.com#include "sim/system.hh" 3412469Sglenn.bergmans@arm.com#include "targetarch/isa_traits.hh" 3512469Sglenn.bergmans@arm.com 3612469Sglenn.bergmans@arm.com 3712469Sglenn.bergmans@arm.com/** 3812469Sglenn.bergmans@arm.com * This class skips a lengthy function in the FreeBSD kernel. 3912469Sglenn.bergmans@arm.com */ 4012469Sglenn.bergmans@arm.comclass FreebsdSystem : public System 4112469Sglenn.bergmans@arm.com{ 4212469Sglenn.bergmans@arm.com private: 4312469Sglenn.bergmans@arm.com 4412469Sglenn.bergmans@arm.com /** PC based event to skip the DELAY call */ 4512469Sglenn.bergmans@arm.com SkipFuncEvent *skipDelayEvent; 4612469Sglenn.bergmans@arm.com 4712469Sglenn.bergmans@arm.com public: 4812469Sglenn.bergmans@arm.com FreebsdSystem(Params *p); 4912469Sglenn.bergmans@arm.com ~FreebsdSystem(); 5012469Sglenn.bergmans@arm.com 5112469Sglenn.bergmans@arm.com}; 5212469Sglenn.bergmans@arm.com 5312469Sglenn.bergmans@arm.com#endif // __KERN_LINUX_LINUX_SYSTEM_HH__ 5412469Sglenn.bergmans@arm.com