qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-arm] [PATCH 17/20] target/arm: Implement SG instruction


From: Peter Maydell
Subject: Re: [Qemu-arm] [PATCH 17/20] target/arm: Implement SG instruction
Date: Fri, 22 Sep 2017 18:18:26 +0100

On 22 September 2017 at 16:00, Peter Maydell <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]