summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/visualizer.cc
diff options
context:
space:
mode:
authorTor Aamodt <[email protected]>2010-11-28 20:48:33 -0800
committerTor Aamodt <[email protected]>2010-11-28 20:48:33 -0800
commit6e06c2e1de8c51a88845b7f35cea219dca7456f2 (patch)
tree28b3daed248f3f4dca9ca49f9d939f6edae10238 /src/gpgpu-sim/visualizer.cc
parent23d096dd1f1d4f0387087ffff0605fbf349556d2 (diff)
enabling L2 data cache... it is write through, write evict like L1.
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 8154]
Diffstat (limited to 'src/gpgpu-sim/visualizer.cc')
-rw-r--r--src/gpgpu-sim/visualizer.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpgpu-sim/visualizer.cc b/src/gpgpu-sim/visualizer.cc
index c2b1d16..1c32692 100644
--- a/src/gpgpu-sim/visualizer.cc
+++ b/src/gpgpu-sim/visualizer.cc
@@ -394,9 +394,9 @@ void time_vector_print_interval2gzfile(gzFile outfile) {
#include "../gpgpu-sim/mem_fetch.h"
void time_vector_update(unsigned int uid,int slot ,long int cycle,int type) {
- if ( (type == RD_REQ) || (type == REPLY_DATA) ) {
+ if ( (type == READ_REQUEST) || (type == READ_REPLY) ) {
g_my_time_vector->update_ld( uid, slot,cycle);
- } else if ( type == WR_REQ ) {
+ } else if ( (type == WRITE_REQUEST) || (type == WRITE_ACK) ) {
g_my_time_vector->update_st( uid, slot,cycle);
} else {
abort();
@@ -405,9 +405,9 @@ void time_vector_update(unsigned int uid,int slot ,long int cycle,int type) {
void check_time_vector_update(unsigned int uid,int slot ,long int latency,int type)
{
- if ( (type == RD_REQ) || (type == REPLY_DATA) ) {
+ if ( (type == READ_REQUEST) || (type == READ_REPLY) ) {
g_my_time_vector->check_ld_update( uid, slot, latency );
- } else if ( type == WR_REQ ) {
+ } else if ( (type == WRITE_REQUEST) || (type == WRITE_ACK) ) {
g_my_time_vector->check_st_update( uid, slot, latency );
} else {
abort();