rename_impl.hh (8907:26256a3e8fa4) | rename_impl.hh (9046:a1104cc13db2) |
---|---|
1/* 2 * Copyright (c) 2010 ARM Limited 3 * All rights reserved. 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 678 unchanged lines hidden (view full) --- 687 688 renameSrcRegs(inst, inst->threadNumber); 689 690 renameDestRegs(inst, inst->threadNumber); 691 692 ++renamed_insts; 693 694#if TRACING_ON | 1/* 2 * Copyright (c) 2010 ARM Limited 3 * All rights reserved. 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 678 unchanged lines hidden (view full) --- 687 688 renameSrcRegs(inst, inst->threadNumber); 689 690 renameDestRegs(inst, inst->threadNumber); 691 692 ++renamed_insts; 693 694#if TRACING_ON |
695 inst->renameTick = curTick(); | 695 inst->renameTick = curTick() - inst->fetchTick; |
696#endif 697 698 // Put instruction in rename queue. 699 toIEW->insts[toIEWIndex] = inst; 700 ++(toIEW->size); 701 702 // Increment which instruction we're on. 703 ++toIEWIndex; --- 288 unchanged lines hidden (view full) --- 992 flat_src_reg = src_reg - TheISA::Ctrl_Base_DepTag + 993 TheISA::NumFloatRegs + TheISA::NumIntRegs; 994 DPRINTF(Rename, "Adjusting reg index from %d to %d.\n", 995 src_reg, flat_src_reg); 996 } else { 997 panic("Reg index is out of bound: %d.", src_reg); 998 } 999 | 696#endif 697 698 // Put instruction in rename queue. 699 toIEW->insts[toIEWIndex] = inst; 700 ++(toIEW->size); 701 702 // Increment which instruction we're on. 703 ++toIEWIndex; --- 288 unchanged lines hidden (view full) --- 992 flat_src_reg = src_reg - TheISA::Ctrl_Base_DepTag + 993 TheISA::NumFloatRegs + TheISA::NumIntRegs; 994 DPRINTF(Rename, "Adjusting reg index from %d to %d.\n", 995 src_reg, flat_src_reg); 996 } else { 997 panic("Reg index is out of bound: %d.", src_reg); 998 } 999 |
1000 inst->flattenSrcReg(src_idx, flat_src_reg); 1001 | |
1002 // Look up the source registers to get the phys. register they've 1003 // been renamed to, and set the sources to those registers. 1004 PhysRegIndex renamed_reg = renameMap[tid]->lookup(flat_src_reg); 1005 1006 DPRINTF(Rename, "[tid:%u]: Looking up arch reg %i, got " 1007 "physical reg %i.\n", tid, (int)flat_src_reg, 1008 (int)renamed_reg); 1009 --- 386 unchanged lines hidden --- | 1000 // Look up the source registers to get the phys. register they've 1001 // been renamed to, and set the sources to those registers. 1002 PhysRegIndex renamed_reg = renameMap[tid]->lookup(flat_src_reg); 1003 1004 DPRINTF(Rename, "[tid:%u]: Looking up arch reg %i, got " 1005 "physical reg %i.\n", tid, (int)flat_src_reg, 1006 (int)renamed_reg); 1007 --- 386 unchanged lines hidden --- |