[kvm-unit-tests,v4,9/9] s390x: smp: Dirty fpc before initial reset test
diff mbox series

Message ID 20200121134254.4570-10-frankja@linux.ibm.com
State New
Headers show
Series
  • s390x: smp: Improve smp code and reset checks
Related show

Commit Message

Janosch Frank Jan. 21, 2020, 1:42 p.m. UTC
Let's dirty the fpc, before we test if the initial reset sets it to 0.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
---
 s390x/smp.c | 1 +
 1 file changed, 1 insertion(+)

Patch
diff mbox series

diff --git a/s390x/smp.c b/s390x/smp.c
index e36ab8c..6357ac4 100644
--- a/s390x/smp.c
+++ b/s390x/smp.c
@@ -179,6 +179,7 @@  static void test_emcall(void)
 /* Used to dirty registers of cpu #1 before it is reset */
 static void test_func_initial(void)
 {
+	asm volatile("sfpc %0" :: "d" (0x11));
 	lctlg(1, 0x42000UL);
 	lctlg(7, 0x43000UL);
 	lctlg(13, 0x44000UL);