idle_event.hh revision 11723
15449Sgblack@eecs.umich.edu/* 28610Snilay@cs.wisc.edu * Copyright (c) 2004-2005 The Regents of The University of Michigan 34519Sgblack@eecs.umich.edu * All rights reserved. 44519Sgblack@eecs.umich.edu * 57087Snate@binkert.org * Redistribution and use in source and binary forms, with or without 67087Snate@binkert.org * modification, are permitted provided that the following conditions are 77087Snate@binkert.org * met: redistributions of source code must retain the above copyright 87087Snate@binkert.org * notice, this list of conditions and the following disclaimer; 97087Snate@binkert.org * redistributions in binary form must reproduce the above copyright 107087Snate@binkert.org * notice, this list of conditions and the following disclaimer in the 117087Snate@binkert.org * documentation and/or other materials provided with the distribution; 127087Snate@binkert.org * neither the name of the copyright holders nor the names of its 134519Sgblack@eecs.umich.edu * contributors may be used to endorse or promote products derived from 147087Snate@binkert.org * this software without specific prior written permission. 157087Snate@binkert.org * 167087Snate@binkert.org * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 177087Snate@binkert.org * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 187087Snate@binkert.org * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 197087Snate@binkert.org * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 207087Snate@binkert.org * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 217087Snate@binkert.org * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 224519Sgblack@eecs.umich.edu * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 237087Snate@binkert.org * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 244519Sgblack@eecs.umich.edu * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 254519Sgblack@eecs.umich.edu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 264519Sgblack@eecs.umich.edu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 274519Sgblack@eecs.umich.edu * 284519Sgblack@eecs.umich.edu * Authors: Nathan Binkert 294519Sgblack@eecs.umich.edu * Lisa Hsu 304519Sgblack@eecs.umich.edu * Ali Saidi 314519Sgblack@eecs.umich.edu */ 324519Sgblack@eecs.umich.edu 334519Sgblack@eecs.umich.edu#ifndef __KERN_RISCV_IDLE_EVENT_HH__ 344519Sgblack@eecs.umich.edu#define __KERN_RISCV_IDLE_EVENT_HH__ 354519Sgblack@eecs.umich.edu 364519Sgblack@eecs.umich.edu#include "cpu/pc_event.hh" 374519Sgblack@eecs.umich.edu 384519Sgblack@eecs.umich.educlass IdleStartEvent : public PCEvent 394519Sgblack@eecs.umich.edu{ 404519Sgblack@eecs.umich.edu public: 414519Sgblack@eecs.umich.edu IdleStartEvent(PCEventQueue *q, const std::string &desc, Addr addr) 424519Sgblack@eecs.umich.edu : PCEvent(q, desc, addr) 434519Sgblack@eecs.umich.edu {} 444519Sgblack@eecs.umich.edu virtual void process(ThreadContext *tc); 454590Sgblack@eecs.umich.edu}; 465163Sgblack@eecs.umich.edu 474590Sgblack@eecs.umich.edu#endif // __KERN_RISCV_IDLE_EVENT_HH__ 484590Sgblack@eecs.umich.edu