Lisa Hsu | 73501ea | 2004-05-17 13:22:19 -0400 | [diff] [blame] | 1 | /* |
Steve Reinhardt | ad8b963 | 2005-06-05 05:16:00 -0400 | [diff] [blame] | 2 | * Copyright (c) 2004-2005 The Regents of The University of Michigan |
Lisa Hsu | 73501ea | 2004-05-17 13:22:19 -0400 | [diff] [blame] | 3 | * 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 Black | e387833 | 2020-03-13 03:44:43 -0700 | [diff] [blame] | 29 | #ifndef __KERN_SYSTEM_EVENTS_HH__ |
| 30 | #define __KERN_SYSTEM_EVENTS_HH__ |
Lisa Hsu | 73501ea | 2004-05-17 13:22:19 -0400 | [diff] [blame] | 31 | |
Steve Reinhardt | d60de71 | 2005-09-24 14:20:29 -0400 | [diff] [blame] | 32 | #include "cpu/pc_event.hh" |
| 33 | |
Daniel R. Carvalho | 974a47d | 2021-05-09 12:32:07 -0300 | [diff] [blame] | 34 | namespace gem5 |
| 35 | { |
| 36 | |
Gabe Black | 309b303 | 2019-12-26 16:49:11 -0800 | [diff] [blame] | 37 | class SkipFuncBase : public PCEvent |
Lisa Hsu | 73501ea | 2004-05-17 13:22:19 -0400 | [diff] [blame] | 38 | { |
Gabe Black | 309b303 | 2019-12-26 16:49:11 -0800 | [diff] [blame] | 39 | protected: |
| 40 | virtual void returnFromFuncIn(ThreadContext *tc) = 0; |
| 41 | |
Lisa Hsu | 73501ea | 2004-05-17 13:22:19 -0400 | [diff] [blame] | 42 | public: |
Gabe Black | e387833 | 2020-03-13 03:44:43 -0700 | [diff] [blame] | 43 | SkipFuncBase(PCEventScope *s, const std::string &desc, Addr addr) : |
| 44 | PCEvent(s, desc, addr) |
Steve Reinhardt | d60de71 | 2005-09-24 14:20:29 -0400 | [diff] [blame] | 45 | {} |
Gabe Black | 309b303 | 2019-12-26 16:49:11 -0800 | [diff] [blame] | 46 | |
Gabe Black | 25f1395 | 2019-12-25 12:43:28 -0800 | [diff] [blame] | 47 | void process(ThreadContext *tc) override; |
Lisa Hsu | 73501ea | 2004-05-17 13:22:19 -0400 | [diff] [blame] | 48 | }; |
| 49 | |
Daniel R. Carvalho | 974a47d | 2021-05-09 12:32:07 -0300 | [diff] [blame] | 50 | } // namespace gem5 |
| 51 | |
Gabe Black | e387833 | 2020-03-13 03:44:43 -0700 | [diff] [blame] | 52 | #endif // __KERN_SYSTEM_EVENTS_HH__ |