Re: [Qemu-devel] [PATCH 10/11] target-arm: Make mode switches from Hyp via CPS and MRS illegal

2016-02-18 Thread Sergey Fedorov
On 15.02.2016 20:22, Peter Maydell wrote: > Mode switches from Hyp to any other mode via the CPS and MRS > instructions are illegal mode switches (though obviously switching > via exception return is valid). Add this check to bad_mode_switch(). > > Signed-off-by: Peter Maydell Reviewed-by: Serge

[Qemu-devel] [PATCH 10/11] target-arm: Make mode switches from Hyp via CPS and MRS illegal

2016-02-15 Thread Peter Maydell
Mode switches from Hyp to any other mode via the CPS and MRS instructions are illegal mode switches (though obviously switching via exception return is valid). Add this check to bad_mode_switch(). Signed-off-by: Peter Maydell --- target-arm/helper.c | 12 ++-- 1 file changed, 10 inserti