Review Board 2.0.15


ARM: Implement some more misc registers

Review Request #163 - Created Aug. 13, 2010 and submitted

Information
Ali Saidi
gem5
Reviewers
Default
ARM: Implement some more misc registers

   
Posted (Aug. 13, 2010, 4:17 p.m.)



  
src/arch/arm/isa.cc (Diff revision 1)
 
 
These should probably be initialized in isa.cc and then just read normally. Writes would then be ignored.
src/arch/arm/miscregs.hh (Diff revision 1)
 
 
Why move this and not the other MISCREG_ID_MMFR*? Why move this one at all? Why move ACTLR?
Posted (Aug. 14, 2010, 3:51 a.m.)



  
src/arch/arm/miscregs.hh (Diff revision 1)
 
 
Because they need to be implemented and the others do not.
  1. I don't see why that matters. If they need to be implemented, that's taken care of separately in a different file and shouldn't be a consideration here.
Posted (Aug. 17, 2010, 7:47 a.m.)



  
src/arch/arm/isa.cc (Diff revision 1)
 
 
I don't see why that's any better. The warns are there because I intend to implement some functionality for them at some point, but I haven't gotten around to doing it. I would both like to be reminded of this fact on access and like to get past this point at present. 
  1. I think we're talking about different things. I'm talking about the ones that already return something, not the ones that are warning below that. The warning ones are fine.
src/arch/arm/miscregs.hh (Diff revision 1)
 
 
It matters because they must be moved above MISCREG_CP15_UNIMP_START to not cause a panic() when they are accessed because they're unimplemented. 
  1. You're right, I'd forgotten about that. Never mind!