From nobody Tue Nov 18 04:25:31 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.128.44 as permitted sender) client-ip=209.85.128.44; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-f44.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.44 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1607890870; cv=none; d=zohomail.com; s=zohoarc; b=R8yEfcUzos4mMnNUnqTiH7C1oq0N4k7ecpcS2OzW8CZDkBOM5xpMi+N7xDTzQepwSOPtvgeEN0ZiXEvx9d2Mma7yzrOLEqRLzjTAyJiqFf877bhgT5VIel6nHo4dAaE7nfGyYZbaQekZ385XsMP0dgRegLbSXKM4bZTws3b4Ut4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1607890870; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=H63X5j82a+LliFWq3Jbhu57DqrlxgL6DTtMOErZtbQQ=; b=oIqhLDb+7dlNF6ABzA8C0Vh342+ORRdCF0A6CPRvHScn7k1fvSuSoV4iHPrdGzZvGDVS2Ap7hasVVayRF+PmHPIOQti2GtvDmrTijTQfINfIoBQmF/j64hb3Fy1UBDu0IOhGy82uS9Okknssd+MYhZFdR0gy16FnMxkvkaDezvU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.44 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) by mx.zohomail.com with SMTPS id 1607890870417365.7424044601373; Sun, 13 Dec 2020 12:21:10 -0800 (PST) Received: by mail-wm1-f44.google.com with SMTP id 3so13413083wmg.4 for ; Sun, 13 Dec 2020 12:21:09 -0800 (PST) Return-Path: Return-Path: Received: from localhost.localdomain (101.red-88-21-206.staticip.rima-tde.net. [88.21.206.101]) by smtp.gmail.com with ESMTPSA id q73sm28249910wme.44.2020.12.13.12.21.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Dec 2020 12:21:08 -0800 (PST) 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=H63X5j82a+LliFWq3Jbhu57DqrlxgL6DTtMOErZtbQQ=; b=lPbs7U1Oj6rFYBbgUiPOqTZ6521oG6m+tJxriuzaHqVF5erscvscVQ3dhMqHQsbHNQ 5r9lEXG2Gscm2RVAf9pZE28wmVUPfVz1xp/azb5nsQ+p8xRdcz+/rFA5qDhVfAa3RqV4 moCXUB4u6iiAHyqx3vEkswuoqCZJ8b4afHlsipDajERjcJBYzGwLIQ9hINcsUjMtS9Oy xp7SflzOtoo6X2jQA+ewdqeXJvIXeZnC8PtpfnS+k6j6Cnd8mXs03HgnrF2P4Nx9nALF D/D8YdWZxqKzUbigIhvS9SQBnkXcnFZ/0Xr5dUbBbgMSxPsXAcwf2RFJvxZ3CJKe8XSI AeZw== 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=H63X5j82a+LliFWq3Jbhu57DqrlxgL6DTtMOErZtbQQ=; b=LIomYOAyb1zXTGUw6lDFtBQxK8hD2wdSbjNCiA3BcNuRC6flQpuXyyoMpL0hPkPBC6 k6XAeuRZyvFsvX2c9jdXfD0e4F1sMnp7BFA5Q31Sk2AJgFiMaAPODslR9339+Qw8rpL6 UNf3hNS5bp3/gcrK6Iwo9ztPX2yRP/BanMpmUwIBLM+SHacITEyiXlZmZkmOAzdrZOJk 1B5yl23OVvACe838sSg5EDPGb0DGBkpxeXe2or4WBvqoeWeP3mApGoHTdTOecV7wOZv7 C1YY9WgQNQtgvsu7gfl21m0eZNSM+eKdvlhnkpUTMGFWFKyegKQ5iqJwyQFn9UExv7Df 8heQ== X-Gm-Message-State: AOAM532WWXIMcxdjkHuWZWSOsmCO3VYGsxS9RpGXo5Y97RPO6NbChBNa NL9EPoiYMGo3tbsyZrwovmg= X-Google-Smtp-Source: ABdhPJz3/rQrsUemKBe0Gm+tyYr3IRJvrRwSyn2Alp0P+Zr8a+YhxOpvSZRX/WsAXlj7ubTDzVcY9g== X-Received: by 2002:a1c:6383:: with SMTP id x125mr24420960wmb.46.1607890868670; Sun, 13 Dec 2020 12:21:08 -0800 (PST) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Paolo Bonzini , Aurelien Jarno , Aleksandar Rikalo , kvm@vger.kernel.org, Jiaxun Yang , Huacai Chen , Paul Burton , Richard Henderson Subject: [PULL 16/26] target/mips: Remove mips_def_t unused argument from mvp_init() Date: Sun, 13 Dec 2020 21:19:36 +0100 Message-Id: <20201213201946.236123-17-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201213201946.236123-1-f4bug@amsat.org> References: <20201213201946.236123-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) mvp_init() doesn't require any CPU definition (beside the information accessible via CPUMIPSState). Remove the unused argument. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson Message-Id: <20201204222622.2743175-2-f4bug@amsat.org> --- target/mips/translate.c | 2 +- target/mips/translate_init.c.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target/mips/translate.c b/target/mips/translate.c index e87f472a8d1..f218997f049 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -31763,7 +31763,7 @@ void cpu_mips_realize_env(CPUMIPSState *env) mmu_init(env, env->cpu_model); #endif fpu_init(env, env->cpu_model); - mvp_init(env, env->cpu_model); + mvp_init(env); } =20 bool cpu_type_supports_cps_smp(const char *cpu_type) diff --git a/target/mips/translate_init.c.inc b/target/mips/translate_init.= c.inc index 79f75ed863c..5a926bc6df3 100644 --- a/target/mips/translate_init.c.inc +++ b/target/mips/translate_init.c.inc @@ -989,7 +989,7 @@ static void fpu_init (CPUMIPSState *env, const mips_def= _t *def) memcpy(&env->active_fpu, &env->fpus[0], sizeof(env->active_fpu)); } =20 -static void mvp_init (CPUMIPSState *env, const mips_def_t *def) +static void mvp_init(CPUMIPSState *env) { env->mvp =3D g_malloc0(sizeof(CPUMIPSMVPContext)); =20 --=20 2.26.2