From: Nilay Vaish Date: Tue, 8 Feb 2011 13:47:02 +0000 (-0600) Subject: MESI CMP: Unset TBE pointer in L2 cache controller X-Git-Tag: stable_2012_02_02~560 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=488280e48b5f227b2eb35df5d6daba2ae94a1de6;p=gem5.git MESI CMP: Unset TBE pointer in L2 cache controller The TBE pointer in the MESI CMP implementation was not being set to NULL when the TBE is deallocated. This resulted in segmentation fault on testing the protocol when the ProtocolTrace was switched on. --- diff --git a/src/mem/protocol/MESI_CMP_directory-L2cache.sm b/src/mem/protocol/MESI_CMP_directory-L2cache.sm index 94dd949c5..c037527de 100644 --- a/src/mem/protocol/MESI_CMP_directory-L2cache.sm +++ b/src/mem/protocol/MESI_CMP_directory-L2cache.sm @@ -593,6 +593,7 @@ machine(L2Cache, "MESI Directory L2 Cache CMP") action(s_deallocateTBE, "s", desc="Deallocate external TBE") { L2_TBEs.deallocate(address); + unset_tbe(); } action(jj_popL1RequestQueue, "\j", desc="Pop incoming L1 request queue") {