3 Jan 2003 11:18
Adding R5k/Rm5200 L2 cache enable bit to CP0_CONFIG
Rafal Boni <rafal <at> attbi.com>
2003-01-03 10:18:44 GMT
2003-01-03 10:18:44 GMT
Folks: To get the R5k/Rm5200 with L2 cache working, one first needs to enable the L2 cache in software; I've got changes to do that, which I'll send under separate cover, but right now I'd like to add enough code to have the MIPS cache code deal with the situation where the L2 cache is present but disabled. To do this, I've added a MIPS3_CONFIG_SC_ENABLE bit to the MIPS cpuregs.h header file; this name is bad for several reaons: * That bit isn't present in generic MIPS3 CPUs; it's specific to R5k/Rm52xx/Rm7k and maybe some others. On the Rm7k, it in fact controls L3 cache, not L2. * I believe the bit is called `SE' in the R5k docs and/or the Rm52xx docs. Do folks out there have a suggested name for this bit which would fit both the above constraints, or should I leave it as MIPS3_CONFIG_SC_ENABLE or change it to MIPS3_CONFIG_SE so it at least matches the docs? (I prefer the latter of the two names). As you can see this patch is a bit of a WIP (I've got more changes in comments than actual code(Continue reading); I plan on cleaning up the comments before I commit... Diff attached below. Thanks to Chris Sekiya for the initial version of all the R5k cache code which propelled this in the right direction
![]()
; I plan on cleaning
up the comments before I commit...
Diff attached below. Thanks to Chris Sekiya for the initial
version of all the R5k cache code which propelled this in the
right direction
RSS Feed