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
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);
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();
}
}
}