Received: from eggs.gnu.org ([208.118.235.92]:60640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXEAB-0005tk-7A for qemu-devel@nongnu.org; Tue, 30 Apr 2013 13:16:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXEA4-0000zR-IN for qemu-devel@nongnu.org; Tue, 30 Apr 2013 13:16:23 -0400 Received: from e06smtp12.uk.ibm.com ([195.75.94.108]:60995) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXEA4-0000wM-7q for qemu-devel@nongnu.org; Tue, 30 Apr 2013 13:16:16 -0400 Received: from /spool/local by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 30 Apr 2013 18:12:32 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id 2080517D8019 for ; Tue, 30 Apr 2013 18:17:05 +0100 (BST) Received: from d06av06.portsmouth.uk.ibm.com (d06av06.portsmouth.uk.ibm.com [9.149.37.217]) by b06cxnps4075.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r3UHFswD45219840 for ; Tue, 30 Apr 2013 17:15:54 GMT Received: from d06av06.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av06.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r3UHG3Le015878 for ; Tue, 30 Apr 2013 11:16:03 -0600 From: Dominik Dingel Date: Tue, 30 Apr 2013 19:15:56 +0200 Message-Id: <1367342159-21545-2-git-send-email-dingel@linux.vnet.ibm.com> In-Reply-To: <1367342159-21545-1-git-send-email-dingel@linux.vnet.ibm.com> References: <1367342159-21545-1-git-send-email-dingel@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v3 1/4] S390: Merging s390_ipl_cpu and s390_ipl_reset List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Christian Borntraeger , Dominik Dingel There is no use in have this splitted in two functions. Signed-off-by: Dominik Dingel diff --git a/hw/s390x/ipl.c b/hw/s390x/ipl.c index cc3cd23..d14c548 100644 --- a/hw/s390x/ipl.c +++ b/hw/s390x/ipl.c @@ -57,16 +57,6 @@ typedef struct S390IPLState { } S390IPLState; -static void s390_ipl_cpu(uint64_t pswaddr) -{ - S390CPU *cpu = S390_CPU(qemu_get_cpu(0)); - CPUS390XState *env = &cpu->env; - - env->psw.addr = pswaddr; - env->psw.mask = IPL_PSW_MASK; - s390_add_running_cpu(cpu); -} - static int s390_ipl_init(SysBusDevice *dev) { S390IPLState *ipl = S390_IPL(dev); @@ -155,8 +145,12 @@ static Property s390_ipl_properties[] = { static void s390_ipl_reset(DeviceState *dev) { S390IPLState *ipl = S390_IPL(dev); + S390CPU *cpu = S390_CPU(qemu_get_cpu(0)); + CPUS390XState *env = &cpu->env; - s390_ipl_cpu(ipl->start_addr); + env->psw.addr = ipl->start_addr; + env->psw.mask = IPL_PSW_MASK; + s390_add_running_cpu(cpu); } static void s390_ipl_class_init(ObjectClass *klass, void *data) -- 1.7.1