Re: [Qemu-devel] [PATCH 04/11] linux-user: Use restrictive mask when calling cpsr_write()

2016-02-18 Thread Sergey Fedorov
On 15.02.2016 20:22, Peter Maydell wrote: > When linux-user code is calling cpsr_write(), use a restrictive > mask to ensure we are limiting the set of CPSR bits we update. > In particular, don't allow the mode bits to be changed. > > Signed-off-by: Peter Maydell

[Qemu-devel] [PATCH 04/11] linux-user: Use restrictive mask when calling cpsr_write()

2016-02-15 Thread Peter Maydell
When linux-user code is calling cpsr_write(), use a restrictive mask to ensure we are limiting the set of CPSR bits we update. In particular, don't allow the mode bits to be changed. Signed-off-by: Peter Maydell --- linux-user/main.c | 3 ++- linux-user/signal.c | 2