rename_impl.hh (4318:eb4241362a80) rename_impl.hh (4329:52057dbec096)
1/*
2 * Copyright (c) 2004-2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 23 unchanged lines hidden (view full) ---

32#include <list>
33
34#include "arch/isa_traits.hh"
35#include "arch/regfile.hh"
36#include "config/full_system.hh"
37#include "cpu/o3/rename.hh"
38
39template <class Impl>
1/*
2 * Copyright (c) 2004-2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 23 unchanged lines hidden (view full) ---

32#include <list>
33
34#include "arch/isa_traits.hh"
35#include "arch/regfile.hh"
36#include "config/full_system.hh"
37#include "cpu/o3/rename.hh"
38
39template <class Impl>
40DefaultRename::DefaultRename(Params *params)
41 : iewToRenameDelay(params->iewToRenameDelay),
40DefaultRename<Impl>::DefaultRename(O3CPU *_cpu, Params *params)
41 : cpu(_cpu),
42 iewToRenameDelay(params->iewToRenameDelay),
42 decodeToRenameDelay(params->decodeToRenameDelay),
43 commitToRenameDelay(params->commitToRenameDelay),
44 renameWidth(params->renameWidth),
45 commitWidth(params->commitWidth),
46 resumeSerialize(false),
47 resumeUnblocking(false),
48 numThreads(params->numberOfThreads),
49 maxPhysicalRegs(params->numPhysIntRegs + params->numPhysFloatRegs)

--- 111 unchanged lines hidden (view full) ---

161 .name(name() + ".RENAME:skidInsts")
162 .desc("count of insts added to the skid buffer")
163 .flags(Stats::total)
164 ;
165}
166
167template <class Impl>
168void
43 decodeToRenameDelay(params->decodeToRenameDelay),
44 commitToRenameDelay(params->commitToRenameDelay),
45 renameWidth(params->renameWidth),
46 commitWidth(params->commitWidth),
47 resumeSerialize(false),
48 resumeUnblocking(false),
49 numThreads(params->numberOfThreads),
50 maxPhysicalRegs(params->numPhysIntRegs + params->numPhysFloatRegs)

--- 111 unchanged lines hidden (view full) ---

162 .name(name() + ".RENAME:skidInsts")
163 .desc("count of insts added to the skid buffer")
164 .flags(Stats::total)
165 ;
166}
167
168template <class Impl>
169void
169DefaultRename<Impl>::setCPU(O3CPU *cpu_ptr)
170{
171 cpu = cpu_ptr;
172 DPRINTF(Rename, "Setting CPU pointer.\n");
173}
174
175template <class Impl>
176void
177DefaultRename<Impl>::setTimeBuffer(TimeBuffer<TimeStruct> *tb_ptr)
178{
179 timeBuffer = tb_ptr;
180
181 // Setup wire to read information from time buffer, from IEW stage.
182 fromIEW = timeBuffer->getWire(-iewToRenameDelay);
183
184 // Setup wire to read infromation from time buffer, from commit stage.

--- 1211 unchanged lines hidden ---
170DefaultRename<Impl>::setTimeBuffer(TimeBuffer<TimeStruct> *tb_ptr)
171{
172 timeBuffer = tb_ptr;
173
174 // Setup wire to read information from time buffer, from IEW stage.
175 fromIEW = timeBuffer->getWire(-iewToRenameDelay);
176
177 // Setup wire to read infromation from time buffer, from commit stage.

--- 1211 unchanged lines hidden ---