ARM: kprobes: Fix unreliable MRS instruction tests
For the instruction 'mrs Rn, cpsr' the resulting value of Rn can vary due to external factors we can't control. So get the test code to mask out these indeterminate bits. Signed-off-by: Jon Medhurst <tixy@linaro.org>
Esse commit está contido em:

commit de
Jon Medhurst

pai
0dc016dbd8
commit
4cd872d973
@@ -204,9 +204,9 @@ void kprobe_arm_test_cases(void)
|
||||
#endif
|
||||
TEST_GROUP("Miscellaneous instructions")
|
||||
|
||||
TEST("mrs r0, cpsr")
|
||||
TEST("mrspl r7, cpsr")
|
||||
TEST("mrs r14, cpsr")
|
||||
TEST_RMASKED("mrs r",0,~PSR_IGNORE_BITS,", cpsr")
|
||||
TEST_RMASKED("mrspl r",7,~PSR_IGNORE_BITS,", cpsr")
|
||||
TEST_RMASKED("mrs r",14,~PSR_IGNORE_BITS,", cpsr")
|
||||
TEST_UNSUPPORTED(__inst_arm(0xe10ff000) " @ mrs r15, cpsr")
|
||||
TEST_UNSUPPORTED("mrs r0, spsr")
|
||||
TEST_UNSUPPORTED("mrs lr, spsr")
|
||||
|
Referência em uma nova issue
Block a user