diff options
| author | Maciej W. Rozycki | 2014-11-10 14:45:41 +0100 |
|---|---|---|
| committer | Leon Alrae | 2014-12-16 13:45:19 +0100 |
| commit | f88f79ec9df06d26d84e1d2e0c02d2634b4d8583 (patch) | |
| tree | bb05d8347d736583dddb8375bcb371bd87eebf2e /scripts/checkpatch.pl | |
| parent | target-mips: Correct MIPS16/microMIPS branch size calculation (diff) | |
| download | qemu-f88f79ec9df06d26d84e1d2e0c02d2634b4d8583.tar.gz qemu-f88f79ec9df06d26d84e1d2e0c02d2634b4d8583.tar.xz qemu-f88f79ec9df06d26d84e1d2e0c02d2634b4d8583.zip | |
target-mips: Correct the handling of writes to CP0.Status for MIPSr6
Correct these issues with the handling of CP0.Status for MIPSr6:
* only ignore the bit pattern of 0b11 on writes to CP0.Status.KSU, that
is for processors that do implement Supervisor Mode, let the bit
pattern be written to CP0.Status.UM:R0 freely (of course the value
written to read-only CP0.Status.R0 will be discarded anyway); this is
in accordance to the relevant architecture specification[1],
* check the newly written pattern rather than the current contents of
CP0.Status for the KSU bits being 0b11,
* use meaningful macro names to refer to CP0.Status bits rather than
magic numbers.
References:
[1] "MIPS Architecture For Programmers, Volume III: MIPS64 / microMIPS64
Privileged Resource Architecture", MIPS Technologies, Inc., Document
Number: MD00091, Revision 6.00, March 31, 2014, Table 9.45 "Status
Register Field Descriptions", pp. 210-211.
Signed-off-by: Maciej W. Rozycki <macro@codesourcery.com>
Reviewed-by: Leon Alrae <leon.alrae@imgtec.com>
Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions
