1/* 2 * Copyright 2018 Google, Inc. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are 6 * met: redistributions of source code must retain the above copyright 7 * notice, this list of conditions and the following disclaimer; 8 * redistributions in binary form must reproduce the above copyright --- 20 unchanged lines hidden (view full) --- 29 30#ifndef __SYSTEMC_EXT_CORE_SC_PROCESS_HANDLE_HH__ 31#define __SYSTEMC_EXT_CORE_SC_PROCESS_HANDLE_HH__ 32 33#include <exception> 34#include <vector> 35 36#include "../utils/sc_report_handler.hh" |
37#include "messages.hh" |
38#include "sc_object.hh" 39 40namespace sc_gem5 41{ 42 43class Process; 44 45struct ProcessFuncWrapper --- 164 unchanged lines hidden (view full) --- 210 211 template <typename T> 212 void 213 throw_it(const T &user_defined_exception, 214 sc_descendent_inclusion_info include_descendants= 215 SC_NO_DESCENDANTS) 216 { 217 if (!_gem5_process) { |
218 SC_REPORT_WARNING(SC_ID_EMPTY_PROCESS_HANDLE_, "throw_it()"); |
219 return; 220 } 221 ::sc_gem5::ExceptionWrapper<T> exc(user_defined_exception); 222 ::sc_gem5::throw_it_wrapper(_gem5_process, exc, 223 include_descendants == SC_INCLUDE_DESCENDANTS); 224 } 225}; 226 --- 12 unchanged lines hidden --- |