From e0f1b4359832ba2952ddcff3a400cd7e1e3d02b5 Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Tue, 5 Oct 2010 13:34:47 -0800 Subject: broken change list: builds, but does not run, yet refactoring: create warp_inst_t that provides notion of a group of scalar instructions traveling down the pipeline. delete DWF delete MIMD delete warp_tracker delete old writeback stage, replace it with a stub that just writes back everything delete old pipeline model current status: MSHR's need to change to deal with the new structure [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7814] --- src/gpgpu-sim/scoreboard.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gpgpu-sim/scoreboard.cc') diff --git a/src/gpgpu-sim/scoreboard.cc b/src/gpgpu-sim/scoreboard.cc index 711a6ab..3484714 100644 --- a/src/gpgpu-sim/scoreboard.cc +++ b/src/gpgpu-sim/scoreboard.cc @@ -67,8 +67,9 @@ void Scoreboard::reserveRegisters(unsigned wid, const class inst_t* inst) } // Release registers for an instruction -void Scoreboard::releaseRegisters(unsigned wid, const class inst_t *inst) +void Scoreboard::releaseRegisters(const class warp_inst_t *inst) { + unsigned wid = inst->warp_id(); if(inst->out[0] > 0) releaseRegister(wid, inst->out[0]); if(inst->out[1] > 0) releaseRegister(wid, inst->out[1]); if(inst->out[2] > 0) releaseRegister(wid, inst->out[2]); -- cgit v1.3