44a45
> #include "sim/system.hh"
94c95,96
< if (tc->exit()) {
---
> if (process->system->numRunningContexts() == 1) {
> // Last running context... exit simulator
96c98,101
< process->getSyscallArg(tc, 0) & 0xff);
---
> process->getSyscallArg(tc, 0) & 0xff);
> } else {
> // other running threads... just halt this one
> tc->halt();