From: Giacomo Travaglini Date: Wed, 12 Dec 2018 16:56:28 +0000 (+0000) Subject: cpu: Fix usage of setArchVecElem X-Git-Tag: v19.0.0.0~1273 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c5baffb5303e9c49d9d475e38783cdcf3391a9a4;p=gem5.git cpu: Fix usage of setArchVecElem setArchVecElem should create a VecElemClass RegId, and not a VecRegClass. Initializing a VecRegClass with three arguments makes it panic Change-Id: I6c398d67305bfe7bea12cb02edd4f4c3a202e69a Signed-off-by: Giacomo Travaglini Reviewed-by: Giacomo Gabrielli Reviewed-on: https://gem5-review.googlesource.com/c/15655 Reviewed-by: Andreas Sandberg Maintainer: Andreas Sandberg --- diff --git a/src/cpu/o3/cpu.cc b/src/cpu/o3/cpu.cc index e5b8103ab..8f399e9f5 100644 --- a/src/cpu/o3/cpu.cc +++ b/src/cpu/o3/cpu.cc @@ -1466,7 +1466,7 @@ FullO3CPU::setArchVecElem(const RegIndex& reg_idx, const ElemIndex& ldx, const VecElem& val, ThreadID tid) { PhysRegIdPtr phys_reg = commitRenameMap[tid].lookup( - RegId(VecRegClass, reg_idx, ldx)); + RegId(VecElemClass, reg_idx, ldx)); setVecElem(phys_reg, val); }