diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2007-11-04 18:57:36 -0500 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2007-11-04 18:57:36 -0500 |
commit | c8123cef1bd73a3e39e82bde53fb8befeb613341 (patch) | |
tree | 4366f3274f530644f54eef47d6171db0653c655b /src/mem/cache | |
parent | 4df5d6483e58929d151710d718d66e198b5f55f2 (diff) | |
download | gem5-c8123cef1bd73a3e39e82bde53fb8befeb613341.tar.xz |
Cache: Fix for OS X 10.5 compiling.
--HG--
extra : convert_revision : ba3c33ed524367280eefc096177d767168ac2cf6
Diffstat (limited to 'src/mem/cache')
-rw-r--r-- | src/mem/cache/tags/iic.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mem/cache/tags/iic.cc b/src/mem/cache/tags/iic.cc index 2f95cdb0f..20babe6bb 100644 --- a/src/mem/cache/tags/iic.cc +++ b/src/mem/cache/tags/iic.cc @@ -233,7 +233,7 @@ IIC::findBlock(Addr addr, int &lat) unsigned set = hash(addr); int set_lat; - unsigned long chain_ptr; + unsigned long chain_ptr = tagNull; if (PROFILE_IIC) setAccess.sample(set); @@ -291,7 +291,7 @@ IIC::findBlock(Addr addr) const Addr tag = extractTag(addr); unsigned set = hash(addr); - unsigned long chain_ptr; + unsigned long chain_ptr = tagNull; IICTag *tag_ptr = sets[set].findTag(tag, chain_ptr); if (tag_ptr == NULL && chain_ptr != tagNull) { |