All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] SPARC/LEON: FPU-FSR only available when FPU present
@ 2011-01-26 16:37 Daniel Hellstrom
  2011-01-26 20:36 ` Sam Ravnborg
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Daniel Hellstrom @ 2011-01-26 16:37 UTC (permalink / raw)
  To: sparclinux

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
---
 arch/sparc/kernel/cpu.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/sparc/kernel/cpu.c b/arch/sparc/kernel/cpu.c
index 0dc714f..7925c54 100644
--- a/arch/sparc/kernel/cpu.c
+++ b/arch/sparc/kernel/cpu.c
@@ -324,7 +324,7 @@ void __cpuinit cpu_probe(void)
 	psr = get_psr();
 	put_psr(psr | PSR_EF);
 #ifdef CONFIG_SPARC_LEON
-	fpu_vers = 7;
+	fpu_vers = get_psr() & PSR_EF ? ((get_fsr() >> 17) & 0x7) : 7;
 #else
 	fpu_vers = ((get_fsr() >> 17) & 0x7);
 #endif
-- 
1.5.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-01-28 23:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-26 16:37 [PATCH] SPARC/LEON: FPU-FSR only available when FPU present Daniel Hellstrom
2011-01-26 20:36 ` Sam Ravnborg
2011-01-26 21:08 ` daniel
2011-01-27 11:06 ` Daniel Hellstrom
2011-01-27 17:29 ` Sam Ravnborg
2011-01-28 23:07 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.