1
0
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:
Paul Mackerras
2025-12-06 18:23:27 +11:00
parent ca792f3b13
commit de71a6119c
3 changed files with 3 additions and 2 deletions

View File

@@ -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)