ruby: more flexible ruby tester support
Review Request #3178 - Created Oct. 30, 2015 and submitted
| Information | |
|---|---|
| Tony Gutierrez | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 11257:d055c013fcaf --------------------------- ruby: more flexible ruby tester support This patch allows the ruby random tester to use ruby ports that may only support instr or data requests. This patch is similar to a previous changeset (8932:1b2c17565ac8) that was unfortunately broken by subsequent changesets. This current patch implements the support in a more straight-forward way. Since retries are now tested when running the ruby random tester, this patch splits up the retry and drain check behavior so that RubyPort children, such as the GPUCoalescer, can perform those operations correctly without having to duplicate code. Finally, the patch also includes better DPRINTFs for debugging the tester.
-
configs/ruby/MESI_Three_Level.py (Diff revision 1) -
I hate to be picky, but could you use this code instead: if len(system.cpu) == 1: clk_domain = system.cpu[0].clk_domain else: clk_domain = system.cpu[i].clk_domain ... clk_domain=clk_domain This significantly reduces the amount of changed code, and makes it more readable. -
src/mem/ruby/system/RubyPort.cc (Diff revision 1) -
Why did this move from ruby_hit_callback? I don't have a good reason for this not to move, but it seems that it potentially should be in another patch.
Can you please provide a clearer patch title and description? To me, it is unclear how this is a 'cleaner' solution. I understand that this fixes some issues testing multiple sequencers, but I don't understand where the retries, and port inst vs. data designation changes fit in all this.
Summary: |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
Diff: |
Revision 2 (+288 -147) |
I think we've addressed all comments/issues. We'd like to ship this asap, could you guys please give it a quick review to make sure we addressed your comments. Thanks.
This is ok with me, but can you please fix the parameter spacing in the config files?
-
configs/ruby/MESI_Three_Level.py (Diff revision 2) -
Can you please put restore spacing back to the way it was? For consistency with the rest of the file, there should be spacing around '=', '*', '+', etc.
-
configs/ruby/MESI_Two_Level.py (Diff revision 2) -
