On 9 November 2015 at 01:11, Michael Davidsaver <mdavidsa...@gmail.com> wrote: > The MRS and MSR instruction handling isn't checking > the current permission level. > > Signed-off-by: Michael Davidsaver <mdavidsa...@gmail.com> > --- > target-arm/helper.c | 79 > +++++++++++++++++++++++++---------------------------- > 1 file changed, 37 insertions(+), 42 deletions(-)
This patch looks good overall, but there's one style nit: > + case 0 ... 7: /* xPSR sub-fields */ > + mask = 0; > + if ((reg&1) && el) { you want spaces around operators, so "reg & 1" here and elsewhere. It would also be good to mention in the commit message the other things this patch is fixing: * privileged attempts to write EPSR should do nothing * accessing an unknown special register now triggers a guest-error warning rather than aborting QEMU thanks -- PMM