From nobody Tue Nov 18 04:32:08 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.128.68 as permitted sender) client-ip=209.85.128.68; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-f68.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.68 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1607905786; cv=none; d=zohomail.com; s=zohoarc; b=lmuRVRPREtNmdAQSWtm1VqYtaZLslPmw61kZ+rUD4G5qROWMlS1rL/zp4JMj5Ggo1lVNmmYbMIIFqjdzwepQzd6epa8eXgfuvxEz2AvRdqH3Z0xcIR0nPdJv3xVUciPyCk0/mZa+/N1SXs10qAMdgjiLpqxhXmh2WRKQl/gGeWM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1607905786; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=uPRexVPkDjCG4AyHRPKefAxhlHzd9mlDS2Ak1Dn5wzA=; b=DBNPR2iXmlGS580OdGu0AVf//p6OP0awjxMIgsrfcCGQ4GJeb4CmCD9NurQVs5slPR/48dDfwprOJhfCL4G2xx4ZJT18urpMzKoZmGIj4HxjYalbZsxM5in0y2hAQVe84eHefD+I39l+UphwpsYpfhbUQBL0NRlXw0J7QcV/1yE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.68 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by mx.zohomail.com with SMTPS id 1607905786526256.41380695345663; Sun, 13 Dec 2020 16:29:46 -0800 (PST) Received: by mail-wm1-f68.google.com with SMTP id 3so13728817wmg.4 for ; Sun, 13 Dec 2020 16:29:45 -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 a144sm28112767wmd.47.2020.12.13.16.29.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Dec 2020 16:29:44 -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=uPRexVPkDjCG4AyHRPKefAxhlHzd9mlDS2Ak1Dn5wzA=; b=KsGQ4KxuPuwCOcYZOBfJuYSkSQFJ+s5a9tB+f6VJAQqiX+YFiCb0G059Tga8+VrAOE pcqAMQQCt7l0E6zZE69zRKLQH6NrqSN4iYi2w4XyETjZbBbfHsAmVynL5wCFSz6bBIAo O/Fz0KKbF/HjqWVVmjDCDEKjfP5goNA1zcB+6GpqLj4fhK3wMF6SsNjqRN9XC9dlDb3O 6dlLyF324/qVWv+O5T5ZV0KrU1JEN9bidxG92CZ3mTaspPrLT5RPQeqgj3MZA2weJoy9 X6yZrMnUS2A4n7H8/+rzZEQbFPavATKi8Q7wetWhYT7mw9E8u//OD70oH8MvcgdIorp+ WP+g== 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=uPRexVPkDjCG4AyHRPKefAxhlHzd9mlDS2Ak1Dn5wzA=; b=hhijZx1CHNrAyzPoiR61D8yffMkJnnCruBqOMLF1Lrmi3+yi0H/9uRDf+W8rYzbkUM Q0IyinSw/45+n6Xa95kD2ie64ujkwYuQpqSnGHB1iE0gfZfBmgPTSfi6Vch7p6tymse1 sP+U3cUU9bY5U9bpbuxZsqgW7ZPPxTLAQIIafJASVx0ztH29gGuUCSKc9n2JIdRKyoRw YKPUb60+WdbiXTK0pgf+YJSPF1gFUx0GjSks4ONC9EYhUWygcvNc/00ZGABAdF58Pi+P ii8DIWVLCcRJqtb+W1MO7kOErsyaGk1YByABKzRGDGSHPXp8qJnRPWFYoIApli3wQuUE gamQ== X-Gm-Message-State: AOAM5311INMFpGd5VPZDXPk7I/+PxSL8gN16u4fWlU2Rd9Ndf52MvSo2 kFVXpByJCioxaVbPcoqZbbo= X-Google-Smtp-Source: ABdhPJz0vLg1dHYIFYCW8IHnH92vbID6VMSm6pGEf9qPMhDIcPw50CVVn53Y+nSJworZ2wc0vfpsDA== X-Received: by 2002:a7b:c930:: with SMTP id h16mr25226062wml.175.1607905784732; Sun, 13 Dec 2020 16:29:44 -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: Laurent Vivier , Huacai Chen , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Jiaxun Yang , Richard Henderson Subject: [PATCH v5 3/7] linux-user/elfload: Rename MIPS GET_FEATURE() as GET_FEATURE_INSN() Date: Mon, 14 Dec 2020 01:29:24 +0100 Message-Id: <20201214002928.343686-4-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201214002928.343686-1-f4bug@amsat.org> References: <20201214002928.343686-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) We want to add macros similar to GET_FEATURE(). As this one use the 'insn_flags' field, rename it GET_FEATURE_INSN(). Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- linux-user/elfload.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/linux-user/elfload.c b/linux-user/elfload.c index aae28fd929d..0e1d7e7677c 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -989,7 +989,7 @@ enum { =20 #define ELF_HWCAP get_elf_hwcap() =20 -#define GET_FEATURE(_flag, _hwcap) \ +#define GET_FEATURE_INSN(_flag, _hwcap) \ do { if (cpu->env.insn_flags & (_flag)) { hwcaps |=3D _hwcap; } } whil= e (0) =20 static uint32_t get_elf_hwcap(void) @@ -997,13 +997,13 @@ static uint32_t get_elf_hwcap(void) MIPSCPU *cpu =3D MIPS_CPU(thread_cpu); uint32_t hwcaps =3D 0; =20 - GET_FEATURE(ISA_MIPS32R6 | ISA_MIPS64R6, HWCAP_MIPS_R6); - GET_FEATURE(ASE_MSA, HWCAP_MIPS_MSA); + GET_FEATURE_INSN(ISA_MIPS32R6 | ISA_MIPS64R6, HWCAP_MIPS_R6); + GET_FEATURE_INSN(ASE_MSA, HWCAP_MIPS_MSA); =20 return hwcaps; } =20 -#undef GET_FEATURE +#undef GET_FEATURE_INSN =20 #endif /* TARGET_MIPS */ =20 --=20 2.26.2