This patchset fixes a couple of bugs in the handling of the SRS
instruction in the Thumb decoder, by refactoring the code so that
it is shared with the ARM decoder (where those bugs were fixed
or never present). The most significant one is LP:1079080, where
we were simply not storing the right thing at all (cpsr not spsr).
I also noticed that we weren't UNDEFfing these insns on M profile,
so patch 2 fixes that.

(Yes, despite that fact I combined two near-identical bits of
code into one, by the time I fixed the coding style and added a
comment it comes out as adding more lines than it deletes...)

[Insert srs lolcat joke of your choice here.]

Peter Maydell (2):
  target-arm: Factor out handling of SRS instruction
  target-arm: Don't decode RFE or SRS on M profile cores

 target-arm/translate.c |  141 ++++++++++++++++++++++++------------------------
 1 file changed, 72 insertions(+), 69 deletions(-)

-- 
1.7.9.5


Reply via email to