Thank you Carlos,thank you very much.


---Original---
From: "Carlos Escuin via gem5-users"<gem5-users@gem5.org&gt;
Date: Mon, Jan 25, 2021 20:34 PM
To: "zhen bang via gem5-users"<gem5-users@gem5.org&gt;;
Cc: "Carlos Escuin"<esc...@unizar.es&gt;;
Subject: [gem5-users] Re: In Ruby, I have changed my 
MESI_Three_Level-L0cache.sm, but panic: Runtime error, assert failure


Hello Zhen,


Icache is the reference to the L0-instructions cache and Dcache is the 
one to the L0-data cache. It's usual to find the first level of a 
conventional cache hierarchy split into instructions and data.

The purpose of the assert is, basically, to check that the same block is 
not present in both structures (L0I and L0D) at the same time since a 
block should be either a data block or an instruction block.


All the best,

Carlos

On 23/1/21 10:13, zhen bang via gem5-users wrote:
&gt; Hello everyone:
&gt; I have changed my MESI_Three_Level-L0cache.sm, but panic: Runtime error, 
assert failure.
&gt; void setState(TBE tbe, Entry cache_entry, Address addr, State state)
&gt;&nbsp;&nbsp; assert((Dcache.isTagPresent(addr) &amp;&amp; 
Icache.isTagPresent(addr)) == false);
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(is_valid(tbe)) {
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return tbe.TBEState;
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } else if (is_valid(cache_entry)) {
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return cache_entry.CacheState;
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }
&gt;
&gt; I don't know the purpose of assert((Dcache.isTagPresent(addr) &amp;&amp; 
Icache.isTagPresent(addr)) == false), Icache and Dcache are different, I don't 
know what does mean?
&gt; Looking forward to your reply.
&gt; _______________________________________________
&gt; gem5-users mailing list -- gem5-users@gem5.org
&gt; To unsubscribe send an email to gem5-users-le...@gem5.org
&gt; %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to