arch, cpu: Architectural Register structural indexing
Replace the unified register mapping with a structure associating a class and an index. It is now much easier to know which class of register the index is referring to. Also, when adding a new class there is no need to modify existing ones. Change-Id: I55b3ac80763702aa2cd3ed2cbff0a75ef7620373 Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> [ Fix RISCV build issues ] Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-on: https://gem5-review.googlesource.com/2700
This commit is contained in:
committed by
Andreas Sandberg
parent
864f87f9c5
commit
5e8287d2e2
@@ -58,7 +58,7 @@ TimingExprEvalContext::TimingExprEvalContext(const StaticInstPtr &inst_,
|
||||
|
||||
uint64_t TimingExprSrcReg::eval(TimingExprEvalContext &context)
|
||||
{
|
||||
return context.inst->srcRegIdx(index);
|
||||
return context.inst->srcRegIdx(index).regIdx;
|
||||
}
|
||||
|
||||
uint64_t TimingExprReadIntReg::eval(TimingExprEvalContext &context)
|
||||
|
||||
Reference in New Issue
Block a user