Review Board 2.0.15


MIPS: move the CP0 config code to isa.cc

Review Request #994 - Created Jan. 15, 2012 and updated

Information
Deyuan Guo
gem5
Reviewers
Default
[--splitting the mips-fs patch--]
We can do the CP0 initialization in configCP(), then make ISA::clear() function call the configCP() in isa.cc.
After that, the setMipsOptions() function in fs.py will be no longer needed.

   
Review request changed
Updated (Jan. 16, 2012, 12:45 a.m.)

Change Summary:

Follow your advide! I fixed the two places you mentioned.
And I will think about if it is necessary to do this, thank you.

Diff:

Revision 2 (+60 -4)

Show changes

Posted (Jan. 18, 2012, 2:16 a.m.)



  
configs/example/fs.py (Diff revision 2)
 
 
Is it possible to move this code into makeLinuxMipsSystem instead of into isa.cc? Maybe even move the line setMipsOptions right under that function call.

If the code is copied into isa.cc, then those values should really be hardcoded into the registers (since there isn't any configuration to be done here.)
src/arch/mips/isa.cc (Diff revision 2)
 
 
Let's move configCP() to the constructor behind the clear() line (instead of in the clear() function).

This way, the clear() function doesn't have two tasks: clear state and reset state.