nother fix
cpu/exec_context.cc: nother little bug...forgot to pop off stack as i read off it sim/system.cc: forgot to pop off stack as i read off it --HG-- extra : convert_revision : d1f691c0a9f0fa22281c717ee465d8a5f1e45c13
This commit is contained in:
parent
8434ae9b03
commit
12662c0b6d
2 changed files with 6 additions and 1 deletions
|
@ -118,6 +118,8 @@ ExecContext::serialize(ostream &os)
|
|||
for (int j=0; j<size; ++j) {
|
||||
top = stack->top();
|
||||
paramOut(os, csprintf("stackpos[%d]",j), top->name);
|
||||
delete top;
|
||||
stack->pop();
|
||||
}
|
||||
} else {
|
||||
SERIALIZE_SCALAR(ctx);
|
||||
|
|
|
@ -148,7 +148,10 @@ System::serialize(std::ostream &os)
|
|||
paramOut(os, csprintf("stacksize[%d]",i), size);
|
||||
for (int j=0; j<size; ++j) {
|
||||
top = stack->top();
|
||||
paramOut(os, csprintf("ctx[%d].stackpos[%d]",i,j), top->name);
|
||||
paramOut(os, csprintf("ctx[%d].stackpos[%d]",i,j),
|
||||
top->name);
|
||||
delete top;
|
||||
stack->pop();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue