blob: 2173af5da6213d6a213b4e9965a7eb7bd02448af [file] [log] [blame]
Lisa Hsu73501ea2004-05-17 13:22:19 -04001/*
Steve Reinhardtad8b9632005-06-05 05:16:00 -04002 * Copyright (c) 2004-2005 The Regents of The University of Michigan
Lisa Hsu73501ea2004-05-17 13:22:19 -04003 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;
9 * redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution;
12 * neither the name of the copyright holders nor the names of its
13 * contributors may be used to endorse or promote products derived from
14 * this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
Gabe Blacke3878332020-03-13 03:44:43 -070029#ifndef __KERN_SYSTEM_EVENTS_HH__
30#define __KERN_SYSTEM_EVENTS_HH__
Lisa Hsu73501ea2004-05-17 13:22:19 -040031
Steve Reinhardtd60de712005-09-24 14:20:29 -040032#include "cpu/pc_event.hh"
33
Daniel R. Carvalho974a47d2021-05-09 12:32:07 -030034namespace gem5
35{
36
Gabe Black309b3032019-12-26 16:49:11 -080037class SkipFuncBase : public PCEvent
Lisa Hsu73501ea2004-05-17 13:22:19 -040038{
Gabe Black309b3032019-12-26 16:49:11 -080039 protected:
40 virtual void returnFromFuncIn(ThreadContext *tc) = 0;
41
Lisa Hsu73501ea2004-05-17 13:22:19 -040042 public:
Gabe Blacke3878332020-03-13 03:44:43 -070043 SkipFuncBase(PCEventScope *s, const std::string &desc, Addr addr) :
44 PCEvent(s, desc, addr)
Steve Reinhardtd60de712005-09-24 14:20:29 -040045 {}
Gabe Black309b3032019-12-26 16:49:11 -080046
Gabe Black25f13952019-12-25 12:43:28 -080047 void process(ThreadContext *tc) override;
Lisa Hsu73501ea2004-05-17 13:22:19 -040048};
49
Daniel R. Carvalho974a47d2021-05-09 12:32:07 -030050} // namespace gem5
51
Gabe Blacke3878332020-03-13 03:44:43 -070052#endif // __KERN_SYSTEM_EVENTS_HH__