diff --git a/src/sim/pseudo_inst.hh b/src/sim/pseudo_inst.hh index 44227aff17..e2d0c612b1 100644 --- a/src/sim/pseudo_inst.hh +++ b/src/sim/pseudo_inst.hh @@ -77,7 +77,10 @@ struct Argument static uint64_t get(ThreadContext *tc, PseudoInstABI::Position &position) { - return TheISA::getArgument(tc, position, sizeof(uint64_t), false); + uint64_t result = TheISA::getArgument(tc, position, sizeof(uint64_t), + false); + position++; + return result; } };