microblaze: Fix msr instruction detection
authorMichal Simek <monstr@monstr.eu>
Fri, 4 Feb 2011 14:24:11 +0000 (15:24 +0100)
committerMichal Simek <monstr@monstr.eu>
Mon, 7 Feb 2011 18:13:01 +0000 (19:13 +0100)
commit0eb6aaf52965c14ba3ea245448c4806cfcd1d18c
tree046fba87d27c0461cd3ba897e5a0fd3b5362c3df
parent1f80a67da2da4180355bc36b2691f16684b194fd
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>
arch/microblaze/kernel/head.S
arch/microblaze/kernel/setup.c