From c0875dfc398780a05dec68bbe36a17f73a98e030 Mon Sep 17 00:00:00 2001 From: Rekai Gonzalez-Alberquilla Date: Tue, 18 Jul 2017 16:31:38 +0100 Subject: [PATCH] cpu: Add missing rename of vector registers in the O3 CPU The introduction of a new vector register class broke rename in the O3 CPU due to an unhandled register class in DefaultRename::renameSrcRegs(). This patch fixes adds the necessary handling to avoid a panic when the vector register file is used. Change-Id: Ie380ab35ec4a151db15402f25b25b58931ee0581 Reviewed-by: Giacomo Gabrielli Reviewed-by: Andreas Sandberg Reviewed-on: https://gem5-review.googlesource.com/4140 Reviewed-by: Jason Lowe-Power Maintainer: Andreas Sandberg --- src/cpu/o3/rename_impl.hh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cpu/o3/rename_impl.hh b/src/cpu/o3/rename_impl.hh index b9adcdff7..bc024f603 100644 --- a/src/cpu/o3/rename_impl.hh +++ b/src/cpu/o3/rename_impl.hh @@ -1028,6 +1028,9 @@ DefaultRename::renameSrcRegs(DynInstPtr &inst, ThreadID tid) case FloatRegClass: fpRenameLookups++; break; + case VecRegClass: + vecRenameLookups++; + break; case CCRegClass: case MiscRegClass: break; -- 2.30.2