- F82EA8FEBCEB149C589262C1387C2A99D641219DAC217DE1BA1E3E99ED8B815B5FE4F6B68128CB55FEFED5BD41B4D764C802B6EBCE34BD4580769027CA001CD7
+ FA0643A3865257C9D5F290E90F980F02C7B6DDF6ED9DB24C8A1EA3571A9BAB6C69642EF743FE03BAE3B48BA2B8811CAF69F12606529178DA5724C6E617411C0F
m/mips.asm
(23 . 9)(23 . 9)
150 ;-----------------------------------------------------------------------------
151
152 ;-----------------------------------------------------------------------------
153 ; # of TLB entries. Could have more; but would have to change not only here.
154 ; # of TLB entries.
155 ;-----------------------------------------------------------------------------
156 %define TLB_ENTRIES_COUNT 16 ; in principle could have more.
157 %define TLB_ENTRIES_COUNT 16
158 ;-----------------------------------------------------------------------------
159
160 ;-----------------------------------------------------------------------------
(95 . 23)(95 . 3)
162 %define CP0St_EXL 1 ; Exception Level (0: Normal, 1: Kernel)
163 %define CP0St_IE 0 ; Interrupt Enable
164 ;-----------------------------------------------------------------------------
165
166 ;-----------------------------------------------------------------------------
167 ; MIPS TLB Entry.
168 ; We don't use C0 and C1 anywhere! and so we can put all of it in 32bits:
169 ;-----------------------------------------------------------------------------
170 ; 11111111111111110000000000000000
171 ; FEDCBA9876543210FEDCBA9876543210
172 ; --------------------------------
173 ; GVVDDAAAAAAAAVVVVVVVVVVVVVVVVVVV
174 ; |1010| ASID || VPN2 |
175 ;-----------------------------------------------------------------------------
176 %define TLB_VPN2_Mask 0x7FFFF ; 19 bits
177 %define TLB_ASID_Mask 0xFF ; 8 bits
178 %define TLB_ASID_Shift 19 ; sits after VPN2 Mask
179 %define TLB_D0 27 ; 27th bit
180 %define TLB_D1 28 ; 28th bit
181 %define TLB_V0 29 ; 29th bit
182 %define TLB_V1 30 ; 30th bit
183 %define TLB_G 31 ; 31st bit (last)
184 ;-----------------------------------------------------------------------------