Re: [Qemu-devel] [PATCH 08/14] target-arm: Allow cp access functions to indicate traps to EL2 or EL3

2015-05-28 Thread Peter Maydell
On 28 May 2015 at 12:48, Edgar E. Iglesias edgar.igles...@xilinx.com wrote: On Tue, May 19, 2015 at 07:33:28PM +0100, Peter Maydell wrote: Some coprocessor access functions will need to indicate that the instruction should trap to EL2 or EL3 rather than the default target exception level; add

Re: [Qemu-devel] [PATCH 08/14] target-arm: Allow cp access functions to indicate traps to EL2 or EL3

2015-05-28 Thread Edgar E. Iglesias
On Tue, May 19, 2015 at 07:33:28PM +0100, Peter Maydell wrote: Some coprocessor access functions will need to indicate that the instruction should trap to EL2 or EL3 rather than the default target exception level; add corresponding CPAccessResult enum entries and handling code.

Re: [Qemu-devel] [PATCH 08/14] target-arm: Allow cp access functions to indicate traps to EL2 or EL3

2015-05-21 Thread Peter Maydell
On 21 May 2015 at 06:47, Edgar E. Iglesias edgar.igles...@xilinx.com wrote: On Tue, May 19, 2015 at 07:33:28PM +0100, Peter Maydell wrote: case CP_ACCESS_TRAP_UNCATEGORIZED: syndrome = syn_uncategorized(); It looks like you need a: target_el = exception_target_el(env); here,

Re: [Qemu-devel] [PATCH 08/14] target-arm: Allow cp access functions to indicate traps to EL2 or EL3

2015-05-20 Thread Edgar E. Iglesias
On Tue, May 19, 2015 at 07:33:28PM +0100, Peter Maydell wrote: Some coprocessor access functions will need to indicate that the instruction should trap to EL2 or EL3 rather than the default target exception level; add corresponding CPAccessResult enum entries and handling code.

[Qemu-devel] [PATCH 08/14] target-arm: Allow cp access functions to indicate traps to EL2 or EL3

2015-05-19 Thread Peter Maydell
Some coprocessor access functions will need to indicate that the instruction should trap to EL2 or EL3 rather than the default target exception level; add corresponding CPAccessResult enum entries and handling code. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/cpu.h