Re: [RFC PATCH 13/14] powerpc/tm: Do not restore TM without SPRs

2018-11-14 Thread Michael Neuling
On Tue, 2018-11-06 at 10:40 -0200, Breno Leitao wrote: > Currently the signal context restore code enables the bit on the MSR > register without restoring the TM SPRs, which can cause undesired side > effects. > > This is not correct because if TM is enabled in MSR, it means the TM SPR > registers

[RFC PATCH 13/14] powerpc/tm: Do not restore TM without SPRs

2018-11-06 Thread Breno Leitao
Currently the signal context restore code enables the bit on the MSR register without restoring the TM SPRs, which can cause undesired side effects. This is not correct because if TM is enabled in MSR, it means the TM SPR registers are valid and updated, which is not correct here. In fact, the liv