[RTEMS Project] #3756: Condition codes in PSR are destroyed by lazy FP context switch

RTEMS trac trac at rtems.org
Thu Jun 6 06:41:41 UTC 2019


#3756: Condition codes in PSR are destroyed by lazy FP context switch
-----------------------------+------------------------------
 Reporter:  Sebastian Huber  |       Owner:  Sebastian Huber
     Type:  defect           |      Status:  closed
 Priority:  normal           |   Milestone:  5.1
Component:  arch/sparc       |     Version:  5
 Severity:  critical         |  Resolution:  fixed
 Keywords:                   |  Blocked By:
 Blocking:                   |
-----------------------------+------------------------------
Changes (by Maksim E. Kozlov <maksim.e.kozlov@…>):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"a38187051863cf4a423c4f00669c6786bc8ff60d/rtems"
 a3818705/rtems]:
 {{{
 #!CommitTicketReference repository="rtems"
 revision="a38187051863cf4a423c4f00669c6786bc8ff60d"
 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.
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/3756#comment:2>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list