Skip to content
Snippets Groups Projects
Commit b777a37c authored by Michal Simek's avatar Michal Simek
Browse files

microblaze: Fix systems with MSR=0


u-boot BSP generates XILINX_USE_MSR_INSTR macro
even for system with MSR=0. That's why explicitly
check that MSR=1.

Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
parent c65715de
No related branches found
No related tags found
No related merge requests found
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
#define NOP __asm__ __volatile__ ("nop"); #define NOP __asm__ __volatile__ ("nop");
/* use machine status registe USE_MSR_REG */ /* use machine status registe USE_MSR_REG */
#ifdef XILINX_USE_MSR_INSTR #if XILINX_USE_MSR_INSTR == 1
#define MSRSET(val) \ #define MSRSET(val) \
__asm__ __volatile__ ("msrset r0," #val ); __asm__ __volatile__ ("msrset r0," #val );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment