45a46
> #include "dev/net/dist_iface.hh"
104a106,119
> /**
> * Even though we are terminating the final thread context, dist-gem5
> * requires the simulation to remain active and provide
> * synchronization messages to the switch process. So we just halt
> * the last thread context and return. The simulation will be
> * terminated by dist-gem5 in a coordinated manner once all nodes
> * have signaled their readiness to exit. For non dist-gem5
> * simulations, readyToExit() always returns true.
> */
> if (!DistIface::readyToExit(0)) {
> tc->halt();
> return status;
> }
>