]> asedeno.scripts.mit.edu Git - linux.git/commit
selftests/powerpc: Add test for explicitly changing DSCR value
authorAnshuman Khandual <khandual@linux.vnet.ibm.com>
Thu, 21 May 2015 06:43:07 +0000 (12:13 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 7 Jun 2015 09:36:08 +0000 (19:36 +1000)
commit1554f21a9890301d1b6586474396e7c9de586204
tree2610614525d086a565634cbd2c65c5eb0a3c7178
parent4c6315f8f9387d638ccb1cc3a46a28a82a109928
selftests/powerpc: Add test for explicitly changing DSCR value

This patch adds a test which modifies the DSCR using mtspr instruction
and verifies the change using mfspr instruction. It uses both the
privilege state SPR as well as the problem state SPR for the purpose.

Acked-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Anshuman Khandual <khandual@linux.vnet.ibm.com>
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/dscr/Makefile
tools/testing/selftests/powerpc/dscr/dscr_explicit_test.c [new file with mode: 0644]