rename_impl.hh (9913:7f43babfde6a) | rename_impl.hh (9916:9c3a4595cce9) |
---|---|
1/* 2 * Copyright (c) 2010-2012 ARM Limited 3 * Copyright (c) 2013 Advanced Micro Devices, Inc. 4 * All rights reserved. 5 * 6 * The license below extends only to copyright in the software and shall 7 * not be construed as granting a license to any other intellectual 8 * property including but not limited to intellectual property relating --- 870 unchanged lines hidden (view full) --- 879 880 // Tell the rename map to set the architected register to the 881 // previous physical register that it was renamed to. 882 renameMap[tid]->setEntry(hb_it->archReg, hb_it->prevPhysReg); 883 884 // Put the renamed physical register back on the free list. 885 freeList->addReg(hb_it->newPhysReg); 886 | 1/* 2 * Copyright (c) 2010-2012 ARM Limited 3 * Copyright (c) 2013 Advanced Micro Devices, Inc. 4 * All rights reserved. 5 * 6 * The license below extends only to copyright in the software and shall 7 * not be construed as granting a license to any other intellectual 8 * property including but not limited to intellectual property relating --- 870 unchanged lines hidden (view full) --- 879 880 // Tell the rename map to set the architected register to the 881 // previous physical register that it was renamed to. 882 renameMap[tid]->setEntry(hb_it->archReg, hb_it->prevPhysReg); 883 884 // Put the renamed physical register back on the free list. 885 freeList->addReg(hb_it->newPhysReg); 886 |
887 // Be sure to mark its register as ready if it's a misc register. 888 if (hb_it->newPhysReg >= maxPhysicalRegs) { 889 scoreboard->setReg(hb_it->newPhysReg); 890 } 891 | |
892 historyBuffer[tid].erase(hb_it++); 893 894 ++renameUndoneMaps; 895 } 896} 897 898template<class Impl> 899void --- 145 unchanged lines hidden (view full) --- 1045 1046 inst->flattenDestReg(dest_idx, flat_dest_reg); 1047 1048 // Get the physical register that the destination will be 1049 // renamed to. 1050 rename_result = renameMap[tid]->rename(flat_dest_reg); 1051 1052 //Mark Scoreboard entry as not ready | 887 historyBuffer[tid].erase(hb_it++); 888 889 ++renameUndoneMaps; 890 } 891} 892 893template<class Impl> 894void --- 145 unchanged lines hidden (view full) --- 1040 1041 inst->flattenDestReg(dest_idx, flat_dest_reg); 1042 1043 // Get the physical register that the destination will be 1044 // renamed to. 1045 rename_result = renameMap[tid]->rename(flat_dest_reg); 1046 1047 //Mark Scoreboard entry as not ready |
1053 if (regIdxToClass(dest_reg) != MiscRegClass) 1054 scoreboard->unsetReg(rename_result.first); | 1048 scoreboard->unsetReg(rename_result.first); |
1055 1056 DPRINTF(Rename, "[tid:%u]: Renaming arch reg %i to physical " 1057 "reg %i.\n", tid, (int)flat_dest_reg, 1058 (int)rename_result.first); 1059 1060 // Record the rename information so that a history can be kept. 1061 RenameHistory hb_entry(inst->seqNum, flat_dest_reg, 1062 rename_result.first, --- 317 unchanged lines hidden --- | 1049 1050 DPRINTF(Rename, "[tid:%u]: Renaming arch reg %i to physical " 1051 "reg %i.\n", tid, (int)flat_dest_reg, 1052 (int)rename_result.first); 1053 1054 // Record the rename information so that a history can be kept. 1055 RenameHistory hb_entry(inst->seqNum, flat_dest_reg, 1056 rename_result.first, --- 317 unchanged lines hidden --- |