MIPS32中的存储器模型被划分为四个大块,如下表所示:
虚拟地址范围 | 命名 | 描述 |
---|---|---|
0x0000,0000~0x7fff,ffff(0~2G-1) | USEG | must be mapped (set page table and TLB)and set cache before use |
0x8000,0000~0x9fff,ffff(2G~2.5G-1) | KSEG0 | directly mapped(no need to set page table and TLB) but need to set cache before use |
0xa000,0000~0xbfff,ffff(2.5G~3G-1) | KSEG1 | directly mapped(no need to set page table and TLB) and never use cache |
0xc000,0000~0xffff,ffff(3G~4G-1) | KSEG2 | muse be mapped(set page table and TLB) and set cache before use |
下面在给出一个存储器管理模型图,又叫做虚拟内存映射图,该图和上面的表是一一对应关系。如下图所示: