sc_main.cc (13255:570e2d799f70) sc_main.cc (13264:cdb71995fe75)
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

--- 67 unchanged lines hidden (view full) ---

76 resultStr = "sc_main finished";
77 // Make sure no systemc events/notifications are scheduled
78 // after sc_main returns.
79 } catch (const sc_report &r) {
80 // There was an exception nobody caught.
81 resultStr = r.what();
82 } catch (...) {
83 // There was some other type of exception we need to wrap.
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

--- 67 unchanged lines hidden (view full) ---

76 resultStr = "sc_main finished";
77 // Make sure no systemc events/notifications are scheduled
78 // after sc_main returns.
79 } catch (const sc_report &r) {
80 // There was an exception nobody caught.
81 resultStr = r.what();
82 } catch (...) {
83 // There was some other type of exception we need to wrap.
84 const sc_report *r = ::sc_gem5::reportifyException();
85 resultStr = r->what();
84 resultStr = ::sc_gem5::reportifyException().what();
86 }
87 ::sc_gem5::Kernel::scMainFinished(true);
88 ::sc_gem5::scheduler.clear();
89 } else {
90 // If python tries to call sc_main but no sc_main was defined...
91 fatal("sc_main called but not defined.\n");
92 }
93 }

--- 268 unchanged lines hidden ---
85 }
86 ::sc_gem5::Kernel::scMainFinished(true);
87 ::sc_gem5::scheduler.clear();
88 } else {
89 // If python tries to call sc_main but no sc_main was defined...
90 fatal("sc_main called but not defined.\n");
91 }
92 }

--- 268 unchanged lines hidden ---