From patchwork Mon Aug 19 22:51:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 820287 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c8:0:b0:367:895a:4699 with SMTP id m8csp1653410wrb; Mon, 19 Aug 2024 15:54:06 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVeDSO4llrb9UsE2mmoWKEuQFOy2iwCitP9LRGe41i2Q4FrBS0CLXxiEFbUVzInE+/8T+qsiRb12RsSwCuap/hJ X-Google-Smtp-Source: AGHT+IFeh+eFlMMEY1QgZf+ejMiqrBI/Q74yQDHnGcaaMWyme7PHDOZblmlAnDhQCRMcPahV/sIB X-Received: by 2002:a05:620a:40d0:b0:79d:5f82:a404 with SMTP id af79cd13be357-7a5069f1d34mr1418184085a.64.1724108046341; Mon, 19 Aug 2024 15:54:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1724108046; cv=none; d=google.com; s=arc-20160816; b=Ynmf5/CVWX4q0/NuOW8bwXqMTbXhVS92mzbKzbj7g/PBX4J6fZODiHNppSsZUxQodP zWqhqpo02tvKWVYDN9egfxomj5znJ9FNrslXOQdD7r8jEhhO787Nw4rpgcoy4fkg0Yvm eFqs4QBhD3cbH3VtQQimHQSp44J8YjP1mZ/oha7pNTsE8pKOUAC20xP3TnNvy01uFzHW bIxhOufeFQdLhaFf2TS4WG2bZKl7b3RV7nYxjpduH6vkqkw07uczHbvym+LJot+Q7qCk RowbOKeKLjqSgdVYppEoW06pBcvtC6XANtMrQTfon3roBXRV9rElRlLD6Bs6LxfhrBD9 o8OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=XgKEfpdnr3u1IGXLtsU83x2uUd6qWPUEdCyP1ZB8Zys=; fh=39rdjBBJOara3uGyShgiv0jSKuxmpFkZgzs+xt6AW7Y=; b=i1EV+dzOWwqkb3Z0yI9y7f35bgbPseQ7aPw8Ta4RqmfALeAEwOEIOepO2lOXU5B2dM 9MfroxzZw3OkRw/Bg3rnTBnzK0U3JfdaE1LcwHv0MEEVZD6fC0nie7jVNCeg8e7CDVaV LOcrqzUDOERAA7m99lc3YdbKIWK25M1ZS/sCU5BsmAKkIt2V7XhPA8s5dno+p6L9p5C/ wn4+s/H9HKcHg7gLfp+MebLgTjqnCKGhWsyxjbPr2MebGf2GIIBYm1SuyO5DvGmIBpF5 CC5oApxOlrm4pSQmVR9WWJJjm1HEik05otkUp+qkRIIJR9Au7nFBBfmq0HEuAXH/R1XE izyA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l6V1S+N4; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7a4ff0e2969si1129014085a.423.2024.08.19.15.54.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Aug 2024 15:54:06 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l6V1S+N4; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sgBFw-0005Ly-3Z; Mon, 19 Aug 2024 18:53:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sgBEa-00010C-QU for qemu-devel@nongnu.org; Mon, 19 Aug 2024 18:52:22 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sgBER-0000js-Je for qemu-devel@nongnu.org; Mon, 19 Aug 2024 18:52:20 -0400 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-42817bee9e8so37480995e9.3 for ; Mon, 19 Aug 2024 15:52:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724107930; x=1724712730; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XgKEfpdnr3u1IGXLtsU83x2uUd6qWPUEdCyP1ZB8Zys=; b=l6V1S+N4+OlIlH46fA580k7re6wCpFSSmdoaaaV6CX8zz13svKfoPSsvlS4SJGVj8n ODk6mNETHGfexhPCL1Kf3AVPOBOdPDPlq/a3PWdtO27bk8v7/9PnbMJT299O9ro1B1Sq DILBdBy1lINSuQrRm5Y7G/53UJDk+JggbxRJ+3ooOI+zQfvqWWAOfrEjAPmHiqo0m1MK G4zKyoONN7iBP9URkIkWR1uG+rLmoZhyN9UEcJ3XTSpCyDbTtiSa8rVNcpYqtjzYRxCz JxmaXeg9AcsLTvw6hJ8I5sQtk+sDFM+KaEQzCEwMxgEXbzZq7gEJQD0s41g7+UIs2yLN 02ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724107930; x=1724712730; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XgKEfpdnr3u1IGXLtsU83x2uUd6qWPUEdCyP1ZB8Zys=; b=rWeKAL29JBaSbJjDc2dD7hEFW5/mKGa7pGxpHtTIE6FsFqGCluLp7RVqBibO+6EJjS RXi3JXyRk3aErOYXn2upGjRiPnRG8Wtgad2PrpCbC03WX6Fhkh6oC1WjMUb3HNZT73bh +qKe4Ydvgmp9fWGFOFeQmSf1/GLHxB//KRv7pWjk53ZyvWj6VcDtMK9X960SqNqFu+i1 OVKE2qUcTPoNty9NB5CIK+2VVBtPV3DdskVUasy6uiXElQlXUCHEtPPaewYZ/LwbfCpJ BpFqxoKe8oFnNJh1viAZE0+FX9m4XU525NWNhDBFWyfefltPmJI8kN/HhwnuWFp3tK1W nBDw== X-Gm-Message-State: AOJu0YxgqPcDrReP1PfJOxorcKKdm0hfSeniY/9iZTb5LAVD6k/mSDKd rbsHmfcBZq1fO35XCG9JJLwFt1+ndogpR+gh9G94HYK6ZVwMWLljjRQ7hxdFVWx4L/Fh8FXApsO Mqj8= X-Received: by 2002:a7b:c4d3:0:b0:428:e820:37ae with SMTP id 5b1f17b1804b1-429ed785f4dmr82092565e9.1.1724107929919; Mon, 19 Aug 2024 15:52:09 -0700 (PDT) Received: from localhost.localdomain (88-178-97-237.subs.proxad.net. [88.178.97.237]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-429ed794640sm122901125e9.41.2024.08.19.15.52.08 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 19 Aug 2024 15:52:09 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , YunQiang Su , Jiaxun Yang , Richard Henderson Subject: [PULL 11/20] linux-user/mips: Select MIPS64R2-generic for Rel2 binaries Date: Tue, 20 Aug 2024 00:51:07 +0200 Message-ID: <20240819225116.17928-12-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240819225116.17928-1-philmd@linaro.org> References: <20240819225116.17928-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=philmd@linaro.org; helo=mail-wm1-x32e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Cc: YunQiang Su Reported-by: Jiaxun Yang Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20240814133928.6746-4-philmd@linaro.org> --- linux-user/mips64/target_elf.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/linux-user/mips64/target_elf.h b/linux-user/mips64/target_elf.h index ce6fb6541e..a3a8b2e385 100644 --- a/linux-user/mips64/target_elf.h +++ b/linux-user/mips64/target_elf.h @@ -17,8 +17,13 @@ static inline const char *cpu_get_model(uint32_t eflags) default: break; } - if ((eflags & EF_MIPS_ARCH) == EF_MIPS_ARCH_64R6) { + switch (eflags & EF_MIPS_ARCH) { + case EF_MIPS_ARCH_64R6: return "I6400"; + case EF_MIPS_ARCH_64R2: + return "MIPS64R2-generic"; + default: + break; } return "5KEf"; }