summaryrefslogtreecommitdiff
path: root/src/cpu/timing_expr.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/timing_expr.cc')
-rw-r--r--src/cpu/timing_expr.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/timing_expr.cc b/src/cpu/timing_expr.cc
index 99b4eb6aa..da5c6489e 100644
--- a/src/cpu/timing_expr.cc
+++ b/src/cpu/timing_expr.cc
@@ -58,7 +58,7 @@ TimingExprEvalContext::TimingExprEvalContext(const StaticInstPtr &inst_,
uint64_t TimingExprSrcReg::eval(TimingExprEvalContext &context)
{
- return context.inst->srcRegIdx(index).regIdx;
+ return context.inst->srcRegIdx(index).index();
}
uint64_t TimingExprReadIntReg::eval(TimingExprEvalContext &context)