From nobody Mon Feb 9 20:11:31 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1502944560196185.1387655656663; Wed, 16 Aug 2017 21:36:00 -0700 (PDT) Received: from localhost ([::1]:56636 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1diCXG-0004RW-Vu for importer@patchew.org; Thu, 17 Aug 2017 00:35:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55848) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1diCSx-0000Xh-Ga for qemu-devel@nongnu.org; Thu, 17 Aug 2017 00:31:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1diCSw-00051x-LD for qemu-devel@nongnu.org; Thu, 17 Aug 2017 00:31:31 -0400 Received: from mail-qt0-x244.google.com ([2607:f8b0:400d:c0d::244]:37993) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1diCSw-00051Z-GW for qemu-devel@nongnu.org; Thu, 17 Aug 2017 00:31:30 -0400 Received: by mail-qt0-x244.google.com with SMTP id p3so5286990qtg.5 for ; Wed, 16 Aug 2017 21:31:30 -0700 (PDT) Received: from yoga.offpageads.com (host21.190-139-16.telecom.net.ar. [190.139.16.21]) by smtp.gmail.com with ESMTPSA id l11sm1748738qtl.24.2017.08.16.21.31.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Aug 2017 21:31:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7O3Qhux9KB2tUeb+D/wqb7+htksROKQfNe4Mv5KosmA=; b=tc2LJcVAfBlD6OaDOWH07P0knX8j9VEr51/guny/DEyk9bG5aqaD4qm6x3Pg5XMcPt 7Vc6pZaYA55ecNX7jS3uHphuORd8eGum/ObuhmaMDH+TCRUz2EoA0txzEhvVyMJjT9ag UOTlIyPSDQ2YBVwICLxXwstwDH6fVikZtLIBoWjy937BTisKDVtssGmykeddfQBYghpv cJgJb4yPSKG1FVFMicVwL/GSou2CO6H7zygMSuyXZB506tefiZyx9ZGobn2orf9k3wY/ b7J9XySKl53GUqhUZMzgixKy/8hpOfQQgWtdWIWHNtjR71vO31+05D7uidLufYUGSpgY T75A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=7O3Qhux9KB2tUeb+D/wqb7+htksROKQfNe4Mv5KosmA=; b=s+noZ8FNt++2O/wUZeqiHlQjcsclJm6eJ0/P3rp8T32suaIzWO6Thd+0PyY5exNJlz 7kCmBDyOnf2Lsvq+CEShWHMkURve1lr8xvSPfwVtOMSbKMGnO6hMMbDI+OJbwRBn9hBQ BhpHdeCcLzL2aMisukWQjB8Wu/n1pHfzASjbzt2X6X2nh/VqLasJEAJZxr3QyMMwOAhx B1lDv8qpZsQsP0S7JSXxzqfdNefmwt8wdiGF5R2U4/Zn4vlborvAyIDhWMRgj2/2Gnzj f+JsIEHrHIMSlWTjcLRcxnBz4M8dgmS2UYTiEuZX6Q48fWwdSxnn0mHv735ln1MoTe88 G/tw== X-Gm-Message-State: AHYfb5gla1r0pVSEYELzFJxyVwrb/4yEtsC843uPoAoMVHjjpN2Uidvx tNBAhHynV/4ftA== X-Received: by 10.237.49.132 with SMTP id 4mr5941775qth.105.1502944290018; Wed, 16 Aug 2017 21:31:30 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Igor Mammedov , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Aurelien Jarno , Yongbok Kim Date: Thu, 17 Aug 2017 01:30:58 -0300 Message-Id: <20170817043102.6322-5-f4bug@amsat.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170817043102.6322-1-f4bug@amsat.org> References: <20170817043102.6322-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::244 Subject: [Qemu-devel] [PATCH 4/8] mips: call cpu_mips_realize_env() from mips_cpu_realizefn() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Thomas Huth , James Hogan , Eduardo Habkost , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- target/mips/cpu.c | 3 +++ target/mips/translate.c | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/target/mips/cpu.c b/target/mips/cpu.c index 68bf423e9d..e3ef835599 100644 --- a/target/mips/cpu.c +++ b/target/mips/cpu.c @@ -123,6 +123,7 @@ static void mips_cpu_disas_set_info(CPUState *s, disass= emble_info *info) { static void mips_cpu_realizefn(DeviceState *dev, Error **errp) { CPUState *cs =3D CPU(dev); + MIPSCPU *cpu =3D MIPS_CPU(dev); MIPSCPUClass *mcc =3D MIPS_CPU_GET_CLASS(dev); Error *local_err =3D NULL; =20 @@ -132,6 +133,8 @@ static void mips_cpu_realizefn(DeviceState *dev, Error = **errp) return; } =20 + cpu_mips_realize_env(&cpu->env); + cpu_reset(cs); qemu_init_vcpu(cs); =20 diff --git a/target/mips/translate.c b/target/mips/translate.c index 5fc7979ac5..94c38e8755 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -20535,7 +20535,6 @@ MIPSCPU *cpu_mips_init(const char *cpu_model) cpu =3D MIPS_CPU(object_new(TYPE_MIPS_CPU)); env =3D &cpu->env; env->cpu_model =3D def; - cpu_mips_realize_env(env); =20 object_property_set_bool(OBJECT(cpu), true, "realized", NULL); =20 --=20 2.14.1