sh: tlb debugfs support.

Export the status of the utlb and itlb entries through debugfs.

Signed-off-by: Matt Fleming <matt@console-pimps.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
Matt Fleming
2010-03-29 15:24:54 +09:00
committed by Paul Mundt
parent 4bea3418c7
commit 6ae6650232
3 changed files with 191 additions and 3 deletions

View File

@ -19,10 +19,17 @@
#define MMUCR 0xFF000010 /* MMU Control Register */
#define MMU_TLB_ENTRY_SHIFT 8
#define MMU_ITLB_ADDRESS_ARRAY 0xF2000000
#define MMU_ITLB_ADDRESS_ARRAY2 0xF2800000
#define MMU_ITLB_DATA_ARRAY 0xF3000000
#define MMU_ITLB_DATA_ARRAY2 0xF3800000
#define MMU_UTLB_ADDRESS_ARRAY 0xF6000000
#define MMU_UTLB_ADDRESS_ARRAY2 0xF6800000
#define MMU_UTLB_DATA_ARRAY 0xF7000000
#define MMU_UTLB_DATA_ARRAY2 0xF7800000
#define MMU_PAGE_ASSOC_BIT 0x80
#define MMUCR_TI (1<<2)