From 5edfb67041ad1c246f4ceca147f06b9db3c0ecc3 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 19 Nov 2018 18:14:16 -0800 Subject: arch: cpu: Rename *FloatRegBits* to *FloatReg*. Now that there's no plain FloatReg, there's no reason to distinguish FloatRegBits with a special suffix since it's the only way to read or write FP registers. Change-Id: I3a60168c1d4302aed55223ea8e37b421f21efded Reviewed-on: https://gem5-review.googlesource.com/c/14460 Reviewed-by: Brandon Potter Reviewed-by: Giacomo Travaglini Maintainer: Gabe Black --- src/cpu/thread_context.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/cpu/thread_context.cc') diff --git a/src/cpu/thread_context.cc b/src/cpu/thread_context.cc index 7597dbfb2..3f5781b32 100644 --- a/src/cpu/thread_context.cc +++ b/src/cpu/thread_context.cc @@ -71,8 +71,8 @@ ThreadContext::compare(ThreadContext *one, ThreadContext *two) // Then loop through the floating point registers. for (int i = 0; i < TheISA::NumFloatRegs; ++i) { - RegVal t1 = one->readFloatRegBits(i); - RegVal t2 = two->readFloatRegBits(i); + RegVal t1 = one->readFloatReg(i); + RegVal t2 = two->readFloatReg(i); if (t1 != t2) panic("Float reg idx %d doesn't match, one: %#x, two: %#x", i, t1, t2); @@ -169,7 +169,7 @@ serialize(ThreadContext &tc, CheckpointOut &cp) RegVal floatRegs[NumFloatRegs]; for (int i = 0; i < NumFloatRegs; ++i) - floatRegs[i] = tc.readFloatRegBitsFlat(i); + floatRegs[i] = tc.readFloatRegFlat(i); // This is a bit ugly, but needed to maintain backwards // compatibility. arrayParamOut(cp, "floatRegs.i", floatRegs, NumFloatRegs); @@ -213,7 +213,7 @@ unserialize(ThreadContext &tc, CheckpointIn &cp) // compatibility. arrayParamIn(cp, "floatRegs.i", floatRegs, NumFloatRegs); for (int i = 0; i < NumFloatRegs; ++i) - tc.setFloatRegBitsFlat(i, floatRegs[i]); + tc.setFloatRegFlat(i, floatRegs[i]); std::vector vecRegs(NumVecRegs); UNSERIALIZE_CONTAINER(vecRegs); -- cgit v1.2.3