Commit 09b340e
committed
FPU: Update committed FPSCR value correctly
The committed FPSCR is updated in the cycle where an FPU instruction
signals completion. Since we update the FPRF field in the FPSCR in
that same cycle, the value put into r.comm_fpscr needs to include
the new FPRF value. Otherwise, a subsequent flush (for example,
due to the following instruction being an illegal instruction that
has to be emulated) will drop the FPSCR update.
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>1 parent 1ad8848 commit 09b340e
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1077 | 1077 | | |
1078 | 1078 | | |
1079 | 1079 | | |
1080 | | - | |
1081 | 1080 | | |
1082 | 1081 | | |
1083 | 1082 | | |
| |||
3728 | 3727 | | |
3729 | 3728 | | |
3730 | 3729 | | |
| 3730 | + | |
| 3731 | + | |
| 3732 | + | |
| 3733 | + | |
3731 | 3734 | | |
3732 | 3735 | | |
3733 | 3736 | | |
| |||
0 commit comments