Lines Matching +full:cache +full:- +full:sets
7 * Copyright (C) 2011-2012 by Broadcom Corporation
34 addiu t1, t1, -1 ; \
36 9: cache op, 0(t0) ; \
80 /* ZSC L2 Cache Register Access Register Definitions */
111 * Returns: v0 = i cache size, v1 = I cache line size
112 * Description: compute the I-cache size and I-cache line size
126 * Determine sets per way: IS
128 * This field contains the number of sets (i.e., indices) per way of
129 * the instruction cache:
131 * vi) 0x5 - 0x7: Reserved.
137 /* sets per way = (64<<IS) */
145 * This field contains the line size of the instruction cache:
146 * i) 0x0: No I-cache present, i) 0x3: 16 bytes, ii) 0x4: 32 bytes, iii)
164 /* v0 now have sets per way, multiply it by line size now
173 * This field contains the set associativity of the instruction cache.
174 * i) 0x0: Direct mapped, ii) 0x1: 2-way, iii) 0x2: 3-way, iv) 0x3:
175 * 4-way, v) 0x4 - 0x7: Reserved.
185 * set associativiy, to get the cache size
206 * Returns: v0 = d cache size, v1 = d cache line size
207 * Description: compute the D-cache size and D-cache line size.
219 * Determine sets per way: IS
221 * This field contains the number of sets (i.e., indices) per way of
222 * the instruction cache:
224 * vi) 0x5 - 0x7: Reserved.
230 /* sets per way = (64<<IS) */
238 * This field contains the line size of the instruction cache:
239 * i) 0x0: No I-cache present, i) 0x3: 16 bytes, ii) 0x4: 32 bytes, iii)
256 /* v0 now have sets per way, multiply it by line size now
264 * This field contains the set associativity of the instruction cache.
265 * i) 0x0: Direct mapped, ii) 0x1: 2-way, iii) 0x2: 3-way, iv) 0x3:
266 * 4-way, v) 0x4 - 0x7: Reserved.
276 * set associativiy, to get the cache size
300 * Description: Enable I and D caches, initialize I and D-caches, also set
301 * hardware delay for d-cache (TP0).
323 * Description: Enable I and D caches, and initialize I and D-caches
336 /* initialize I and D cache Data and Tag registers. */
345 * then the cache operations to clear the cache will be ignored
351 jal size_i_cache /* v0 = i-cache size, v1 = i-cache line size */
363 * set K0 cache mode
372 * Initialize instruction cache.
379 * Now we can run from I-$, kseg 0
389 * Initialize data cache.
392 jal size_d_cache /* v0 = d-cache size, v1 = d-cache line size */
419 /* enable Bus error for I-fetch */
591 cache 0x7, 0x0(t2)
607 cache 0xb, 0x0(t2)
715 * Description: Enable I and D caches, and initialize I and D-caches