Re: [Qemu-devel] [RFC PATCH] disable execution of SWP/SWPB

2012-04-17 Thread Peter Maydell
On 17 April 2012 10:53, Alexey Starikovskiy wrote: > I was wondering how to implement disabling of SWP/SWPB execution if > they are not enabled in SCTLR.SW bit. > One way to do this is to intercept writes to SCTLR, do tb_flush and > make SWP [un]defined for any following translations depending on

[Qemu-devel] [RFC PATCH] disable execution of SWP/SWPB

2012-04-17 Thread Alexey Starikovskiy
Hi, I was wondering how to implement disabling of SWP/SWPB execution if they are not enabled in SCTLR.SW bit. One way to do this is to intercept writes to SCTLR, do tb_flush and make SWP [un]defined for any following translations depending on the c1_sys state during the translation. The other way