microblaze: Fix msr instruction detection
Fix msr instructions detection. The current code just use msrclr for loading msr content and compare it with proper MSR content. If msrclr is not implemented r8 contains pc address. Previous code wanted to use MSR carry bit but if msrclr wasn't implemented carry wasn't cleared. Signed-off-by: Michal Simek <monstr@monstr.eu>
This commit is contained in:
parent
1f80a67da2
commit
0eb6aaf529
2 changed files with 9 additions and 10 deletions
|
@ -161,11 +161,11 @@ void __init machine_early_init(const char *cmdline, unsigned int ram,
|
|||
#if CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR
|
||||
if (msr)
|
||||
eprintk("!!!Your kernel has setup MSR instruction but "
|
||||
"CPU don't have it %d\n", msr);
|
||||
"CPU don't have it %x\n", msr);
|
||||
#else
|
||||
if (!msr)
|
||||
eprintk("!!!Your kernel not setup MSR instruction but "
|
||||
"CPU have it %d\n", msr);
|
||||
"CPU have it %x\n", msr);
|
||||
#endif
|
||||
|
||||
for (src = __ivt_start; src < __ivt_end; src++, dst++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue