65a66
> #include "dev/net/dist_iface.hh"
67a69
> #include "sim/initparam_keys.hh"
360,361c362,365
< Tick when = curTick() + delay * SimClock::Int::ns;
< exitSimLoop("m5_exit instruction encountered", 0, when, 0, true);
---
> if (DistIface::readyToExit(delay)) {
> Tick when = curTick() + delay * SimClock::Int::ns;
> exitSimLoop("m5_exit instruction encountered", 0, when, 0, true);
> }
474c478
< if (strlen(key_str) == 0) {
---
> if (strcmp(key_str, InitParamKey::DEFAULT) == 0) {
475a480,483
> } else if (strcmp(key_str, InitParamKey::DIST_RANK) == 0) {
> val = DistIface::rankParam();
> } else if (strcmp(key_str, InitParamKey::DIST_SIZE) == 0) {
> val = DistIface::sizeParam();
477c485
< panic("Unknown key for initparam pseudo instruction");
---
> panic("Unknown key for initparam pseudo instruction:\"%s\"", key_str);
532,535c540,544
< Tick when = curTick() + delay * SimClock::Int::ns;
< Tick repeat = period * SimClock::Int::ns;
<
< exitSimLoop("checkpoint", 0, when, repeat);
---
> if (DistIface::readyToCkpt(delay, period)) {
> Tick when = curTick() + delay * SimClock::Int::ns;
> Tick repeat = period * SimClock::Int::ns;
> exitSimLoop("checkpoint", 0, when, repeat);
> }