On 22 September 2017 at 16:00, Peter Maydell <peter.mayd...@linaro.org> wrote: > Implement the SG instruction, which we emulate 'by hand' in the > exception handling code path.
I've just realised that this patch is correct as far as it goes but it only implements the common path case for SG (where it is in S&NSC memory and executed by a CPU in NS state). There is also defined behaviour for: * SG in NS memory (behaves as a NOP) * SG in S memory and CPU already secure (clears IT bits and does nothing else) Those can be implemented in translate.c in the usual way; I'll put a patch for that in the next set (or in a respin of this set). thanks -- PMM