From 69f2911e04ffb1b19eef1fafb8c040af271f656e Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Thu, 15 Jul 2010 18:09:46 -0800 Subject: creating branch for adding support for CUDA 3.x and Fermi [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 6829] --- src/intersim/credit.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/intersim/credit.cpp (limited to 'src/intersim/credit.cpp') diff --git a/src/intersim/credit.cpp b/src/intersim/credit.cpp new file mode 100644 index 0000000..5090943 --- /dev/null +++ b/src/intersim/credit.cpp @@ -0,0 +1,16 @@ +#include "booksim.hpp" +#include "credit.hpp" + +Credit::Credit( int max_vcs ) +{ + vc = new int [max_vcs]; + vc_cnt = 0; + + tail = false; + id = -1; +} + +Credit::~Credit( ) +{ + delete [] vc; +} -- cgit v1.3