#3756 closed defect (fixed)

Condition codes in PSR are destroyed by lazy FP context switch

Reported by: Sebastian Huber Owned by: Sebastian Huber
Priority: normal Milestone: 5.1
Component: arch/sparc Version: 5
Severity: critical Keywords:
Cc: Blocked By:
Blocking:

Change History (2)

comment:1 Changed on Jun 6, 2019 at 6:41:38 AM by Sebastian Huber <sebastian.huber@…>

In 7d7cbf3c/rtems:

sparc: Improve _CPU_Context_validate()

Use the FPU and check that the condition codes in the PSR are preserved.

Update #3756.

comment:2 Changed on Jun 6, 2019 at 6:41:41 AM by Maksim E. Kozlov <maksim.e.kozlov@…>

Resolution: fixed
Status: assignedclosed

In a3818705/rtems:

sparc: Fix missed restoring of PSR in syscall_lazy_fp_switch

It is needed to restore PSR just before return because condition
codes are dirty after the CMP instructions and this may cause
undefined program behavior after returning from the switching
procedure (on following branch instruction, for example).

Close #3756.

Note: See TracTickets for help on using tickets.