Mark Rutland 521c646108 arm64: cpufeature: correctly handle MRS to XZR
In emulate_mrs() we may erroneously write back to the user SP rather
than XZR if we trap an MRS instruction where Xt == 31.

Use the new pt_regs_write_reg() helper to handle this correctly.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Fixes: 77c97b4ee21290f5 ("arm64: cpufeature: Expose CPUID registers by emulation")
Cc: Andre Przywara <andre.przywara@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Suzuki K Poulose <suzuki.poulose@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
2017-02-15 12:20:29 +00:00
..
2012-09-17 13:42:21 +01:00
2016-06-27 16:31:25 +01:00
2016-12-26 13:05:17 -05:00
2016-06-27 16:31:25 +01:00
2016-05-16 17:17:24 -07:00
2016-02-24 14:57:27 +00:00
2016-02-24 14:57:24 +00:00
2016-11-07 18:15:21 +00:00
2016-04-20 12:22:42 +01:00