Re: [Qemu-devel] [PATCH 1/4] target-arm: Clean up trap/undef handling of SRS

2016-02-12 Thread Edgar E. Iglesias
On Thu, Feb 11, 2016 at 07:11:46PM +, Peter Maydell wrote: > The SRS instruction is: > * UNDEFINED in Hyp mode > * UNPREDICTABLE in User or System mode > * UNPREDICTABLE if the specified mode isn't accessible > * trapped to EL3 if EL3 is AArch64 and we are at Secure EL1 > > Clean up the

Re: [Qemu-devel] [PATCH 1/4] target-arm: Clean up trap/undef handling of SRS

2016-02-12 Thread Sergey Fedorov
On 11.02.2016 22:11, Peter Maydell wrote: > The SRS instruction is: > * UNDEFINED in Hyp mode > * UNPREDICTABLE in User or System mode > * UNPREDICTABLE if the specified mode isn't accessible > * trapped to EL3 if EL3 is AArch64 and we are at Secure EL1 > > Clean up the code to handle all

[Qemu-devel] [PATCH 1/4] target-arm: Clean up trap/undef handling of SRS

2016-02-11 Thread Peter Maydell
The SRS instruction is: * UNDEFINED in Hyp mode * UNPREDICTABLE in User or System mode * UNPREDICTABLE if the specified mode isn't accessible * trapped to EL3 if EL3 is AArch64 and we are at Secure EL1 Clean up the code to handle all these cases cleanly, including picking UNDEF as our choice