1 /******************************************************************************
2 * Copyright (c) 2008-2013 Xilinx, Inc. All rights reserved.
5 * XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS" AS A
6 * COURTESY TO YOU. BY PROVIDING THIS DESIGN, CODE, OR INFORMATION AS
7 * ONE POSSIBLE IMPLEMENTATION OF THIS FEATURE, APPLICATION OR
8 * STANDARD, XILINX IS MAKING NO REPRESENTATION THAT THIS IMPLEMENTATION
9 * IS FREE FROM ANY CLAIMS OF INFRINGEMENT, AND YOU ARE RESPONSIBLE
10 * FOR OBTAINING ANY RIGHTS YOU MAY REQUIRE FOR YOUR IMPLEMENTATION.
11 * XILINX EXPRESSLY DISCLAIMS ANY WARRANTY WHATSOEVER WITH RESPECT TO
12 * THE ADEQUACY OF THE IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO
13 * ANY WARRANTIES OR REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE
14 * FROM CLAIMS OF INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY
15 * AND FITNESS FOR A PARTICULAR PURPOSE.
17 * File : microblaze_disable_dcache.s
18 * Date : 2002, March 20.
20 * Group : Emerging Software Technologies
23 * Disable the L1 dcache on the microblaze.
25 *******************************************************************************/
27 #include "xparameters.h"
30 .globl microblaze_disable_dcache
31 .ent microblaze_disable_dcache
33 microblaze_disable_dcache:
34 #if XPAR_MICROBLAZE_USE_MSR_INSTR == 1
36 #if XPAR_MICROBLAZE_DCACHE_USE_WRITEBACK != 0
39 brlid r15, microblaze_flush_dcache /* microblaze_flush_dcache does not use r1*/
43 #endif /* XPAR_MICROBLAZE_DCACHE_USE_WRITEBACK != 0 */
47 #else /* XPAR_MICROBLAZE_USE_MSR_INSTR == 1 */
51 #if XPAR_MICROBLAZE_DCACHE_USE_WRITEBACK != 0
53 brlid r15, microblaze_flush_dcache
55 #endif /* XPAR_MICROBLAZE_DCACHE_USE_WRITEBACK != 0 */
57 andi r11, r11, ~(0x80)
60 #if XPAR_MICROBLAZE_DCACHE_USE_WRITEBACK != 0
62 #endif /* XPAR_MICROBLAZE_DCACHE_USE_WRITEBACK != 0 */
67 #endif /*XPAR_MICROBLAZE_USE_MSR_INSTR == 1*/
68 .end microblaze_disable_dcache