summaryrefslogtreecommitdiffstats
path: root/target/s390x/sigp.c
diff options
context:
space:
mode:
authorJanosch Frank2019-11-27 18:50:42 +0100
committerCornelia Huck2019-12-14 10:25:50 +0100
commiteac4f82791f1807c423e85670837db103b9d59b3 (patch)
treea8f9e66fba44f15fb99f8b010f317efbaadc1a1c /target/s390x/sigp.c
parents390x: Don't do a normal reset on the initial cpu (diff)
downloadqemu-eac4f82791f1807c423e85670837db103b9d59b3.tar.gz
qemu-eac4f82791f1807c423e85670837db103b9d59b3.tar.xz
qemu-eac4f82791f1807c423e85670837db103b9d59b3.zip
s390x: Move reset normal to shared reset handler
Let's start moving the cpu reset functions into a single function with a switch/case, so we can later use fallthroughs and share more code between resets. This patch introduces the reset function by renaming cpu_reset(). Signed-off-by: Janosch Frank <frankja@linux.ibm.com> Reviewed-by: David Hildenbrand <david@redhat.com> Message-Id: <20191127175046.4911-3-frankja@linux.ibm.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'target/s390x/sigp.c')
-rw-r--r--target/s390x/sigp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/s390x/sigp.c b/target/s390x/sigp.c
index 2ce22d4dc1..850139b9cd 100644
--- a/target/s390x/sigp.c
+++ b/target/s390x/sigp.c
@@ -266,7 +266,7 @@ static void sigp_cpu_reset(CPUState *cs, run_on_cpu_data arg)
SigpInfo *si = arg.host_ptr;
cpu_synchronize_state(cs);
- scc->cpu_reset(cs);
+ scc->reset(cs, S390_CPU_RESET_NORMAL);
cpu_synchronize_post_reset(cs);
si->cc = SIGP_CC_ORDER_CODE_ACCEPTED;
}