Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch for MLC fix and exclusive L1 support #134

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

SleepBook
Copy link
Contributor

Fix previous issue when enabling MLC. Also add support for exclusive L1 and private MLC.

Improve the comments in memory.c

I did couple tests (both single-core and multi-core with multi-programmed workloads) with simple u-benchmarks. The results looks correct. But in case any performance anomaly arise in the future after enabling MLC, I am happy to take a look.

I already squashed all commits into three kinda independent ones, thus suggest not to squash further when merging to the mainline.

* The mlc_fill_line was not handling insertion correctly. WB of victim
was handled after new line got inserted. The same issue didn't appear
in l1_fill_line

* Add option to support private mlc

* Turn on MLC by default
* Add an option to model non-inclusive LLC (l1). When turned on,
demand req will be steered into MLC directly, and L1 works as
victim cache to MLC.

* Bug fix in mlc_fill

* Fix the lost of dirty bit when promoting L1 line to MLC. Use the
dirty_l0 from req to carry the dirtyness info

* Revised the mlc_hit logic. Req hit in mlc should be sent to
cores' fill queues instead of directly calling done_func at MLC

* Fix the code format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant