From nobody Tue Nov 18 07:26:46 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.128.49 as permitted sender) client-ip=209.85.128.49; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-f49.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.49 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1608136081; cv=none; d=zohomail.com; s=zohoarc; b=jkuitu9TabStVLYC0e7/lOiGuhs9r8QolcJaUCY+6HcAmgVYSi2l/0B3vnTUUUUJoa+NcEr8ScIb8DjJFjBKI5AlVmoa2nGR0CZ/iX+5zEPu0tYFHVE7QzXJJIm52oNDXzxCK+lL7MnBT0jEbVx5ufCRYHU5rk6pHfTVWHcPoec= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1608136081; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=recdiB4XKQVk4l5Db0Se4FZc13AoQDQYCnHTZazhMBI=; b=mMvXBV5U+N7rZV9qK5UPtPDrRB+Ok4yisTxC1yVZigjE7BuY1X2ex+lqTAR99dpe4CrgmItKChokMiVm7qAdu1wP6+da1HNn1uF811vEHZXwsB3RaOz7LfDtBaaesH+qG5SwNez3g25fmkuaJ6c6hq3OEODxvw4ziIVUZMtQeZY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.49 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) by mx.zohomail.com with SMTPS id 1608136081051432.1995159152551; Wed, 16 Dec 2020 08:28:01 -0800 (PST) Received: by mail-wm1-f49.google.com with SMTP id a6so2940618wmc.2 for ; Wed, 16 Dec 2020 08:27:59 -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 j13sm3337149wmi.36.2020.12.16.08.27.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Dec 2020 08:27:56 -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=recdiB4XKQVk4l5Db0Se4FZc13AoQDQYCnHTZazhMBI=; b=UcN0ev8q3Hq5ePjuLrX2bZyjXp8IU5s0eXQ0H9oo1M3jBmheBiGfEwCicqIDb8Yneu cUDHbCjxh1WrTDvvX/IQNu02mGA0XzZT3682cfH+0xJBwt7U+B6h0Ndi/6Uu+Eh5YhGK QbylIr9MEi1ClVhag0pJTGUWmEXhvZznD3+4CgAy3Ilb07yolH4qBPMDqIKbYO0jK+Pv fyx12ww3IfM3ur45/21R/3Kv49YxkrCwZfObJIlXLEY8HxT52k0MS+edSgcgIpDWB9QH pZZYVZ42l4iLiXrozVOItFx8Q7NgHhunQbC61tmaDinHsX1mkUlHfYZbPmBGEUz8ucs8 MdpQ== 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=recdiB4XKQVk4l5Db0Se4FZc13AoQDQYCnHTZazhMBI=; b=t2LWYgd7klhTpMIlgKHKyWqx9Fn3yT4qxwztBeVIaKGZM2DIz+/yA3W9qlDll4KOBN FuCuLMmLMKztoMK8CF5L009YmQWXb4YcRd7Cj1DYVnuC6UQU2RPFGNH9aPKJxo7P+Ix7 +o0lQ/brg7tGXC+KIX7XzY/ZOddXwuBiZgPadUrW3ktMO8+eIqmfHkbOu73bWV60e3Q2 EzL4CwJBiFpSMaiqhNIKL/DuU2dsdRffAlkMgfB8q+eRA6O3Iun0W4+F8zuE5UQlm5at CvfLl1qmg86Dpkpv16JCft9ru/esn9I3mcRAfNL0w6BiowlPXxp1VO2WKPO7/30IJZCI JYTA== X-Gm-Message-State: AOAM532thm1eadevjaGwxuLpdJBWM3E5ewZTWvPV8YQleIYsJgXyBxd/ b8+ALRejV3MBtDLlldJTpnm8Gyg3coc= X-Google-Smtp-Source: ABdhPJykQZmVg07opBWnhfCK9pjX7iPVGhozzx01GfjTWAo3ytz9sQS2maY+wBcyVj9L7LiWy0nf1A== X-Received: by 2002:a7b:cb46:: with SMTP id v6mr4089655wmj.19.1608136077181; Wed, 16 Dec 2020 08:27:57 -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: Richard Henderson , Aleksandar Rikalo , Laurent Vivier , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Paul Burton , Jiaxun Yang , Aurelien Jarno Subject: [PATCH v2 02/12] target/mips/mips-defs: Use ISA_MIPS3 for ISA_MIPS64 Date: Wed, 16 Dec 2020 17:27:34 +0100 Message-Id: <20201216162744.895920-3-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201216162744.895920-1-f4bug@amsat.org> References: <20201216162744.895920-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) MIPS 64-bit ISA is introduced with MIPS3. No need for another bit/definition to check for 64-bit. Suggested-by: Jiaxun Yang Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- target/mips/mips-defs.h | 2 +- hw/mips/boston.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target/mips/mips-defs.h b/target/mips/mips-defs.h index f4d76e562d1..ab621a750d5 100644 --- a/target/mips/mips-defs.h +++ b/target/mips/mips-defs.h @@ -19,7 +19,7 @@ */ #define ISA_MIPS1 0x0000000000000001ULL #define ISA_MIPS2 0x0000000000000002ULL -#define ISA_MIPS3 0x0000000000000004ULL +#define ISA_MIPS3 0x0000000000000004ULL /* 64-bit */ #define ISA_MIPS4 0x0000000000000008ULL #define ISA_MIPS5 0x0000000000000010ULL #define ISA_MIPS32 0x0000000000000020ULL diff --git a/hw/mips/boston.c b/hw/mips/boston.c index c3b94c68e1b..f44f681fab5 100644 --- a/hw/mips/boston.c +++ b/hw/mips/boston.c @@ -463,7 +463,7 @@ static void boston_mach_init(MachineState *machine) exit(1); } =20 - is_64b =3D cpu_type_supports_isa(machine->cpu_type, ISA_MIPS64); + is_64b =3D cpu_type_supports_isa(machine->cpu_type, ISA_MIPS3); =20 object_initialize_child(OBJECT(machine), "cps", &s->cps, TYPE_MIPS_CPS= ); object_property_set_str(OBJECT(&s->cps), "cpu-type", machine->cpu_type, --=20 2.26.2