mirror of
https://github.com/antonblanchard/microwatt.git
synced 2026-05-04 23:35:58 +00:00
FPU: Make FPSCR bit 11 always read as 0
Bit 11 (52 in BE numbering) is a reserved bit. Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
This commit is contained in:
@@ -274,6 +274,7 @@ void set_fpscr(unsigned long fpscr)
|
||||
unsigned long fpscr_eval(unsigned long val)
|
||||
{
|
||||
val &= ~0x60000000; /* clear FEX and VX */
|
||||
val &= ~0x00000800; /* clear reserved bit 52 (BE) */
|
||||
if (val & 0x1f80700) /* test all VX* bits */
|
||||
val |= 0x20000000;
|
||||
if ((val >> 25) & (val >> 3) & 0x1f)
|
||||
|
||||
Reference in New Issue
Block a user