summaryrefslogtreecommitdiffstats
path: root/bsps/microblaze/microblaze_fpga/start/microblaze_enable_icache.S
blob: 7de51ac23094be30d73d00686d25ef12849cc64e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/******************************************************************************
* Copyright (c) 2004 - 2020 Xilinx, Inc.  All rights reserved.
* SPDX-License-Identifier: MIT
******************************************************************************/

	.text
	.globl	microblaze_enable_icache
	.ent	microblaze_enable_icache
	.align	2
microblaze_enable_icache:
	/* Read the MSR register */
	mfs	r8, rmsr
	/* Set the interrupt enable bit */
	ori	r8, r8, 0x20
	/* Save the MSR register */
	mts	rmsr, r8
	/* Return */
	rtsd	r15, 8
	nop
	.end	microblaze_enable_icache