![]() |
.. (לתיקייה המכילה) | |
Can we change cache_def.h ?
|
For testing - of course. However - don't create anything there. This file will be rewritten in the tests. |
Can we implement the cache in different way than the way cache is built, as long as results are consistent with the way real cache behaves?
|
Yes. But only as long as: 1. You don't allocate memory dynamically (other than during initialization). Note that many STL constructs do so! 2. Lookup in the cache is not considerably longer than it should have been (i.e., O(n_ways)). |
Where do we set the objects that hold the cache state?
| Wherever you want. |
Should we count code fetches as misses?
| No. |
What about the flags definition inconsistency for BR, ST, LD ?
| These cases (looking at the flags right after these instructions), won't be checked. |

