Re: [PATCH 1/2] sparc: Fix missed restoring of PSR in syscall_lazy_fp_switch

2019-06-06 Thread Maksim Kozlov
On Thu, 6 Jun 2019 at 09:43, Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > Hello Maksim, > > thanks for the bug report and the fix. I added a ticket for it: > > https://devel.rtems.org/ticket/3756 > > I checked in a slightly modified patch: > > > https://git.rtems.org/rtems/commit

Re: [PATCH 1/2] sparc: Fix missed restoring of PSR in syscall_lazy_fp_switch

2019-06-05 Thread Sebastian Huber
Hello Maksim, thanks for the bug report and the fix. I added a ticket for it: https://devel.rtems.org/ticket/3756 I checked in a slightly modified patch: https://git.rtems.org/rtems/commit/?id=a38187051863cf4a423c4f00669c6786bc8ff60d Would you mind reviewing it. -- Sebastian Huber, embedded

[PATCH 1/2] sparc: Fix missed restoring of PSR in syscall_lazy_fp_switch

2019-06-05 Thread Maksim E. Kozlov
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). --- cpukit/score/cpu/sparc/syscall.S | 4 1 fi