Merge branches 'for-next/gcs', 'for-next/probes', 'for-next/asm-offsets', 'for-next...
[linux.git] / tools / testing / selftests / arm64 / fp / za-test.S
index 095b45531640966e685408057c08ada67e68998b..9c33e13e9dc4a6f084649fe7d0fb838d9171e3aa 100644 (file)
@@ -148,21 +148,16 @@ function check_za
        b       memcmp
 endfunction
 
-// Any SME register modified here can cause corruption in the main
-// thread -- but *only* the locations modified here.
+// Modify the live SME register state, signal return will undo our changes
 function irritator_handler
        // Increment the irritation signal count (x23):
        ldr     x0, [x2, #ucontext_regs + 8 * 23]
        add     x0, x0, #1
        str     x0, [x2, #ucontext_regs + 8 * 23]
 
-       // Corrupt some random ZA data
-#if 0
-       adr     x0, .text + (irritator_handler - .text) / 16 * 16
-       movi    v0.8b, #1
-       movi    v9.16b, #2
-       movi    v31.8b, #3
-#endif
+       // This will reset ZA to all bits 0
+       smstop
+       smstart_za
 
        ret
 endfunction
@@ -231,6 +226,8 @@ endfunction
 // Main program entry point
 .globl _start
 function _start
+       enable_gcs
+
        mov     x23, #0         // signal count
 
        mov     w0, #SIGINT
This page took 0.036078 seconds and 4 git commands to generate.