projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fad0c7
)
mem: Don't print out the data of a cache block
author
Mitch Hayenga
<Mitch.Hayenga@ARM.com>
Tue, 1 Apr 2014 19:24:36 +0000
(14:24 -0500)
committer
Mitch Hayenga
<Mitch.Hayenga@ARM.com>
Tue, 1 Apr 2014 19:24:36 +0000
(14:24 -0500)
This never actually worked since it was printing out only a word
of the cache block and not the entire thing and doubly didn't work
csprintf overrides the %#x specifier and assumes a char* array is
actually a string.
src/mem/cache/blk.hh
patch
|
blob
|
history
diff --git
a/src/mem/cache/blk.hh
b/src/mem/cache/blk.hh
index c65498f075743b79d86e7445f9ca0dd242debeaa..d38281e48d25403540e6800ed6132c498421bf28 100644
(file)
--- a/
src/mem/cache/blk.hh
+++ b/
src/mem/cache/blk.hh
@@
-339,8
+339,8
@@
class CacheBlk
default: s = 'T'; break; // @TODO add other types
}
return csprintf("state: %x (%c) valid: %d writable: %d readable: %d "
- "dirty: %d tag: %x
data: %x
", status, s, isValid(),
- isWritable(), isReadable(), isDirty(), tag
, *data
);
+ "dirty: %d tag: %x", status, s, isValid(),
+ isWritable(), isReadable(), isDirty(), tag);
}
/**