aboutsummaryrefslogtreecommitdiff
path: root/target/s390x/sigp.c
diff options
context:
space:
mode:
authorJanosch Frank <frankja@linux.ibm.com>2019-11-27 12:50:42 -0500
committerCornelia Huck <cohuck@redhat.com>2019-12-14 10:25:50 +0100
commiteac4f82791f1807c423e85670837db103b9d59b3 (patch)
treea8f9e66fba44f15fb99f8b010f317efbaadc1a1c /target/s390x/sigp.c
parentec9227339fce99412830d44a37eb0bd2fadd5f75 (diff)
downloadqemu-eac4f82791f1807c423e85670837db103b9d59b3.zip
qemu-eac4f82791f1807c423e85670837db103b9d59b3.tar.gz
qemu-eac4f82791f1807c423e85670837db103b9d59b3.tar.bz2
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 2ce22d4..850139b 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;
}