From 2dae0e87358e693f120c2da925801944a4727a91 Mon Sep 17 00:00:00 2001 From: Korey Sewell Date: Sun, 19 Jun 2011 21:43:41 -0400 Subject: inorder: use separate float-reg bits function in dyninst this will make sure we get the correct view of a FP register --- src/cpu/inorder/resources/use_def.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/cpu/inorder/resources') diff --git a/src/cpu/inorder/resources/use_def.cc b/src/cpu/inorder/resources/use_def.cc index f7376c83c..9d0100565 100644 --- a/src/cpu/inorder/resources/use_def.cc +++ b/src/cpu/inorder/resources/use_def.cc @@ -404,18 +404,18 @@ UseDefUnit::execute(int slot_idx) regDepMap[tid]->removeFront(reg_type, flat_idx, inst); if (inst->resultType(ud_idx) == - InOrderDynInst::Integer) { + InOrderDynInst::FloatBits) { DPRINTF(InOrderUseDef, "[tid:%i]: [sn:%i]: Writing FP-Bits " "Result %08f (bits:0x%x) to register " "idx %i (%i).\n", tid, seq_num, inst->readFloatResult(ud_idx), - inst->readIntResult(ud_idx), + inst->readFloatBitsResult(ud_idx), reg_idx - FP_Base_DepTag, flat_idx); // Check for FloatRegBits Here cpu->setFloatRegBits(flat_idx, - inst->readIntResult(ud_idx), + inst->readFloatBitsResult(ud_idx), inst->readTid()); } else if (inst->resultType(ud_idx) == InOrderDynInst::Float) { @@ -439,7 +439,6 @@ UseDefUnit::execute(int slot_idx) inst->readIntResult(ud_idx), reg_idx - FP_Base_DepTag, flat_idx); - // Check for FloatRegBits Here cpu->setFloatReg(flat_idx, inst->readFloatResult(ud_idx), inst->readTid()); -- cgit v1.2.3