sc_main.cc (13084:383ac3b9b4ff) | sc_main.cc (13097:6efbd43ab80e) |
---|---|
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 --- 211 unchanged lines hidden (view full) --- 220} 221 222void 223sc_stop() 224{ 225 if (::sc_gem5::Kernel::status() == SC_STOPPED) 226 return; 227 | 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 --- 211 unchanged lines hidden (view full) --- 220} 221 222void 223sc_stop() 224{ 225 if (::sc_gem5::Kernel::status() == SC_STOPPED) 226 return; 227 |
228 if (sc_is_running()) { | 228 if ((sc_get_status() & SC_RUNNING)) { |
229 bool finish_delta = (_stop_mode == SC_STOP_FINISH_DELTA); 230 ::sc_gem5::scheduler.scheduleStop(finish_delta); 231 } else { 232 ::sc_gem5::Kernel::stop(); 233 } 234} 235 236const sc_time & --- 115 unchanged lines hidden --- | 229 bool finish_delta = (_stop_mode == SC_STOP_FINISH_DELTA); 230 ::sc_gem5::scheduler.scheduleStop(finish_delta); 231 } else { 232 ::sc_gem5::Kernel::stop(); 233 } 234} 235 236const sc_time & --- 115 unchanged lines hidden --- |