ARM: don't set cache fields of CTR reg if there are no caches
Review Request #1344 - Created Aug. 7, 2012 and discarded
| Information | |
|---|---|
| Tony Gutierrez | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 9182:3377bf0ff708 --------------------------- ARM: don't set cache fields of CTR reg if there are no caches currently the CTR reg sets its fields based on the block size of the peer connected to its inst port. in the cache where there are no caches it doesn't make sense to do so. this patch sets only the relevant fields of the CTR reg if there are no caches and leaves the cache-related fields as 0.
Issue Summary
| Description | From | Last Updated | Status |
|---|---|---|---|
| I really think we should avoid doing anything along these lines and instead take the plunge and to the CPU ... | Andreas Hansson | Aug. 9, 2012, 7:12 a.m. | Open |
| How bad would it be to make the CheckerCPU inherit from something other than a BaseCPU, or insert another class ... | Andreas Hansson | Aug. 9, 2012, 7:12 a.m. | Open |
| I really think we have to find a better way of doing this. String matching should, in my opinion, never ... | Andreas Hansson | Sept. 1, 2012, 9:41 a.m. | Open |
Description: |
|
|||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 2 (+15 -7) |
-
src/arch/arm/isa.cc (Diff revision 2) -
I really think we should avoid doing anything along these lines and instead take the plunge and to the CPU -> core switch and then introduce the CPU "box" simobject that is merely a hierarchy with pointers to caches etc. I really do not like to have assumptions on the connectivity. If we could insert a monitor for example then this code would break. Also, does this work with switching CPUs where the instport won't be connected to start with? Checkers etc?
-
src/cpu/checker/cpu.hh (Diff revision 2) -
How bad would it be to make the CheckerCPU inherit from something other than a BaseCPU, or insert another class in the hierarchy for "real" CPU vs CPU-like behaviour (the checker)? It seems we try to squeeze a square peg in a round hole here... and also with some other issues related to the checker.
Description: |
|
|||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 3 (+22 -6) |
Any thoughts on this solution?
Summary: |
|
||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: |
|
||||||||||||||||||||||||||||||||||||||||||
Diff: |
Revision 4 (+13 -5) |
Description: |
|
|---|
Description: |
|
|||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 5 (+20 -12) |
-
src/arch/arm/isa.cc (Diff revision 5) -
I really think we have to find a better way of doing this. String matching should, in my opinion, never be used to determine the type of a module as it is setting ourselves up for hidden assumptions. Do you agree?
