aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJanosch Frank <frankja@linux.ibm.com>2020-04-29 10:35:10 -0400
committerDavid Hildenbrand <david@redhat.com>2020-04-30 16:52:14 +0200
commit3947751d9189946da7486eb765178616d6473745 (patch)
tree6c1bf8e6250b9636c432ae7654b3ddf301e15010
parentdedae8c54f8ac6cb3eb9fef4159d2ac82f641114 (diff)
downloadkvm-unit-tests-3947751d9189946da7486eb765178616d6473745.tar.gz
s390x: smp: Dirty fpc before initial reset test
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> Message-Id: <20200429143518.1360468-3-frankja@linux.ibm.com> Signed-off-by: David Hildenbrand <david@redhat.com>
-rw-r--r--s390x/smp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/s390x/smp.c b/s390x/smp.c
index 08fa770..bf082d1 100644
--- a/s390x/smp.c
+++ b/s390x/smp.c
@@ -198,6 +198,7 @@ static void test_sense_running(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);