196c196
< if (FullSystem) {
---
> if (FullSystem)
198,207c198,206
< } else {
< // HACK: check CPU's nextPC before and after syscall. If it
< // changes, update this instruction's nextPC because the syscall
< // must have changed the nextPC.
< TheISA::PCState curPC = this->cpu->pcState(this->threadNumber);
< this->cpu->syscall(callnum, this->threadNumber);
< TheISA::PCState newPC = this->cpu->pcState(this->threadNumber);
< if (!(curPC == newPC)) {
< this->pcState(newPC);
< }
---
>
> // HACK: check CPU's nextPC before and after syscall. If it
> // changes, update this instruction's nextPC because the syscall
> // must have changed the nextPC.
> TheISA::PCState curPC = this->cpu->pcState(this->threadNumber);
> this->cpu->syscall(callnum, this->threadNumber);
> TheISA::PCState newPC = this->cpu->pcState(this->threadNumber);
> if (!(curPC == newPC)) {
> this->pcState(newPC);