From 3e191b14776c7a2c967e80c24331b27a50b8df77 Mon Sep 17 00:00:00 2001 From: Kevin Lim Date: Wed, 7 Jun 2006 14:46:18 -0400 Subject: Clear misc regs at startup. src/arch/alpha/regfile.hh: Define clear functions on the individual reg files. src/cpu/o3/regfile.hh: Be sure to clear the misc reg file at startup. --HG-- extra : convert_revision : 41e640887f0cf15d778c59a4dcd544d46899b527 --- src/cpu/o3/regfile.hh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/cpu/o3/regfile.hh') diff --git a/src/cpu/o3/regfile.hh b/src/cpu/o3/regfile.hh index ee95b9ab8..a142b7102 100644 --- a/src/cpu/o3/regfile.hh +++ b/src/cpu/o3/regfile.hh @@ -299,6 +299,10 @@ PhysRegFile::PhysRegFile(unsigned _numPhysicalIntRegs, intRegFile.resize(numPhysicalIntRegs); floatRegFile.resize(numPhysicalFloatRegs); + for (int i = 0; i < Impl::MaxThreads; ++i) { + miscRegs[i].clear(); + } + //memset(intRegFile, 0, sizeof(*intRegFile)); //memset(floatRegFile, 0, sizeof(*floatRegFile)); } -- cgit v1.2.3