From: Ali Saidi Date: Sun, 4 Nov 2007 23:57:36 +0000 (-0500) Subject: Cache: Fix for OS X 10.5 compiling. X-Git-Tag: m5_2.0_beta4~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c8123cef1bd73a3e39e82bde53fb8befeb613341;p=gem5.git Cache: Fix for OS X 10.5 compiling. --HG-- extra : convert_revision : ba3c33ed524367280eefc096177d767168ac2cf6 --- 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) {