Commit 2666e476 authored by Daniel Hellstrom's avatar Daniel Hellstrom Committed by David S. Miller

sparc32/leon: FPU-FSR only available when FPU present

Signed-off-by: default avatarDaniel Hellstrom <daniel@gaisler.com>
Acked-by: default avatarSam Ravnborg <sam@ravnborg.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7279b82c
...@@ -324,7 +324,7 @@ void __cpuinit cpu_probe(void) ...@@ -324,7 +324,7 @@ void __cpuinit cpu_probe(void)
psr = get_psr(); psr = get_psr();
put_psr(psr | PSR_EF); put_psr(psr | PSR_EF);
#ifdef CONFIG_SPARC_LEON #ifdef CONFIG_SPARC_LEON
fpu_vers = 7; fpu_vers = get_psr() & PSR_EF ? ((get_fsr() >> 17) & 0x7) : 7;
#else #else
fpu_vers = ((get_fsr() >> 17) & 0x7); fpu_vers = ((get_fsr() >> 17) & 0x7);
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment