isa: get rid of expandForMT function
Review Request #578 - Created March 14, 2011 and submitted
| Information | |
|---|---|
| Korey Sewell | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
| ali, gblack, nate, stever | |
isa: get rid of expandForMT function MIPS is the only ISA that cares about having a piece of ISA state integrate multiple threads so add constants for MIPS and relieve the other ISAs from having to define this. Also, InOrder was the only core that was actively calling this function * * * isa: get rid of corespecific type The CoreSpecific type was used as a proxy to pass in HW specific params to a MIPS CPU, but since MIPS FS hasnt been touched for awhile, it makes sense to not force every other ISA to use CoreSpecific as well use a special reset function to set it. That probably should go in a PowerOn reset fault anyway.
Review request changed
Updated (March 14, 2011, 10:34 a.m.)
Description: |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 2 (+34 -141) |
Posted (March 15, 2011, 4:08 a.m.)
I think this is a great change. There are only a couple small things to look at, and then of course making sure the regressions still work. I expect they will, but this touches a lot of areas so it's best to be sure.
-
src/arch/mips/isa.hh (Diff revision 2) -
Do you really want these to be static? Then they can't be changed between different CPUs which have separate ISA state. I can see how you might be treating them as constants, but I'm not familiar enough with MIPS to know if that makes sense.
-
src/arch/mips/isa.cc (Diff revision 2) -
This should be a panic, not an assert which will always be triggered.
