sc_process_handle.cc (12960:ff77756883e0) | sc_process_handle.cc (12994:afce27405f70) |
---|---|
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 --- 25 unchanged lines hidden (view full) --- 34#include "systemc/ext/core/sc_process_handle.hh" 35 36namespace sc_core 37{ 38 39const char * 40sc_unwind_exception::what() const throw() 41{ | 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 --- 25 unchanged lines hidden (view full) --- 34#include "systemc/ext/core/sc_process_handle.hh" 35 36namespace sc_core 37{ 38 39const char * 40sc_unwind_exception::what() const throw() 41{ |
42 panic("%s for base class called.\n", __PRETTY_FUNCTION__); | 42 return _isReset ? "RESET" : "KILL"; |
43} 44 45bool 46sc_unwind_exception::is_reset() const 47{ | 43} 44 45bool 46sc_unwind_exception::is_reset() const 47{ |
48 panic("%s for base class called.\n", __PRETTY_FUNCTION__); | 48 return _isReset; |
49} 50 | 49} 50 |
51sc_unwind_exception::sc_unwind_exception() {} 52sc_unwind_exception::sc_unwind_exception(const sc_unwind_exception &) {} | 51sc_unwind_exception::sc_unwind_exception() : _isReset(false) {} 52sc_unwind_exception::sc_unwind_exception(const sc_unwind_exception &e) : 53 _isReset(e._isReset) 54{} |
53sc_unwind_exception::~sc_unwind_exception() throw() {} 54 55 56const char * 57sc_process_b::name() 58{ 59 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 60 return ""; --- 250 unchanged lines hidden --- | 55sc_unwind_exception::~sc_unwind_exception() throw() {} 56 57 58const char * 59sc_process_b::name() 60{ 61 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 62 return ""; --- 250 unchanged lines hidden --- |