Deleted Added
sdiff udiff text old ( 13255:570e2d799f70 ) new ( 13264:cdb71995fe75 )
full compact
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 resultStr = ::sc_gem5::reportifyException().what();
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 ---