From patchwork Wed Aug 14 13:39:26 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: 819138 Delivered-To: patch@linaro.org Received: by 2002:adf:cd01:0:b0:367:895a:4699 with SMTP id w1csp707988wrm; Wed, 14 Aug 2024 06:40:31 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVS2TiN2ZMuQgaAV1PsqsELMQPRJN9VYNwjiOkLHxmyZPvJxHiJTv8iDCQHKULKPkN1spWNSsvYWd3GKUlsYBph X-Google-Smtp-Source: AGHT+IGahPE74xgox1CDrEYf72ZlstClm7uEBH5UI5eN6Mr9xbQNOfFruzibUqXfMq7j5hb331K8 X-Received: by 2002:a05:6358:102:b0:1ac:66ef:a369 with SMTP id e5c5f4694b2df-1b1aac485cbmr305980455d.21.1723642830998; Wed, 14 Aug 2024 06:40:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1723642830; cv=none; d=google.com; s=arc-20160816; b=b7nha5xJCVFlvynXxZwRAdY1iVcjuiwG7wsLaLy9o9nsMMIF6V9eqbp9NoX1bF//Qr aDp2H1uIxZrlqJ3kKTMpZyZwx/NIAHVwwqQ03A0QHUx5qMmElg7mOiRca792qJ14OoZz p3aTQz/1rQEA3bpgIVXXJC5RhBm8tOQG7WjH4WTKzqAuDokrXkr92Mtm3l+M/PZqt8z2 C9DLZPgGFsZ4IqBUkw14/nSRCSYcTTtDszyTyiV2/H1H5mZFTyFFUg1R77gmZXkQIV9/ vY5Jl0U65U07T6qKxkHbAd83r0twujXB/6A9YyW+cObZomXHKgYxqlnCJVkJJSKRnAQm 5WHQ== 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=jxLHqx+S5C+GI1KIVnOAvNeyCE7KTQMJVIjAY6qG4kE=; fh=SgQi9QGT4DYLRgioYwKS1V/gtdjuctfyZssx6CiEDhs=; b=Zn4u1dxzxvOYrhtPYYJGkFAay+KUybapJu5jPPe1HWpmN1fWvGPOsq8bfWtGDqiWei +XI3aJP9zzBh2ufmlcXipxox0lYeXtDOb0c1m8uZLHOLotfckmpl1rxbdd1uZWzlBaQv cmgkW4y8NBhhxTV7aIzci6Q00fn4eocuVgOHl77HGq9Y5Fp+VSvNeUgTMJJW1IGZyRVF v76Mxr89/RW6VIrtgco/jGCtUKMPGxdLnWIOVVAAs7Y2WrjT2BCnvf1vPVtXs85U2bTZ 2szKbYv9ZeriwNfQ0QWTDJR8xX724jpIkryJXBBnFd5HvH45pbvUPK6YhLKQIjXlpo0R zTxA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=M1JdrgpR; 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 6a1803df08f44-6bd82e34f98si109101016d6.245.2024.08.14.06.40.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 14 Aug 2024 06:40:30 -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=M1JdrgpR; 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 1seEEP-00074t-Q2; Wed, 14 Aug 2024 09:40:05 -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 1seEEO-00073j-4j for qemu-devel@nongnu.org; Wed, 14 Aug 2024 09:40:04 -0400 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1seEEM-0004RB-CE for qemu-devel@nongnu.org; Wed, 14 Aug 2024 09:40:03 -0400 Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-3684bea9728so3910054f8f.3 for ; Wed, 14 Aug 2024 06:40:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723642800; x=1724247600; 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=jxLHqx+S5C+GI1KIVnOAvNeyCE7KTQMJVIjAY6qG4kE=; b=M1JdrgpRAdN78DDRdwZPpPQ6Rg2uIMpne6tJIlimLIaVcRbH5ucqqfewk9HSm2nupo 06umrhXuUT/GtIkaA04cNOAvB7TWKA8ISJphj13WrQgjW4hlcVNuFpwFIusGdTwkjzc9 U+COr1Uml0kAmD5/wojJqM4pcNmOQEk1wkyNOCfw6tm1PwFHUfJp3dFlYHvRL4mbzKmR gTJf+/b0nqkdbX7VonjOVQUqhA2fx3SIU5CN+ZVcE5WTE9Qdo3layuwPJEP2Xok3l8X6 HAUwq0ZfFCXFD/KGPoDARygWptYeRqkVXhbkMCdln1uFqh928wqrL7by6xo25eoj/hRd 4jPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723642800; x=1724247600; 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=jxLHqx+S5C+GI1KIVnOAvNeyCE7KTQMJVIjAY6qG4kE=; b=LOEDR9aIVdELHweDaOslm1F+L9AoMW+wfw4lK/x7MFtHcDHK/kuaz3PbHcOMmAM/La 5Y6KAaFAHF9MCD6DESnaJX86FX3ZT2RZe7oNY/xfwa8vm3u8QkdxjEbNBsmXQ1oMAECt 1XTpynICXHcouVCM/9Ruuo3WPxefiASO9hUdPP+AxMdfn0/TaAUFf91NaMpjyqQ9hpwp v6DThI6fXzTmE9xMjcOnMlDliAiwktKOe2H0gAdtm/OEX3awfQ9fH0hwmuBKq9WUx6xS SNAgyAk0uEEWJIkUPnxwv4Imf0Fc2KdlXHMMQA3v5TAurF1h4MSlgp/iWi4+E0KsTI+M e7Vw== X-Gm-Message-State: AOJu0YzmIZnj/XEm1Hwz++VWsmRPqyAj7SlW0HxjMSwvYP/AD8z+W6W7 Le1Er9PcqUEHfMRhhXjmzNdQNP9z3jTiM7Py1IoROkHadofTC0PdbbKDfhJD0vk4YHk7E9CN+k4 F+hY= X-Received: by 2002:adf:fa4a:0:b0:367:8ff0:e022 with SMTP id ffacd0b85a97d-37177837cb2mr1780181f8f.63.1723642800475; Wed, 14 Aug 2024 06:40:00 -0700 (PDT) Received: from m1x-phil.lan ([176.187.208.57]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36e4c938280sm12912096f8f.36.2024.08.14.06.39.55 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 14 Aug 2024 06:40:00 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Jiaxun Yang , Laurent Vivier , Richard Henderson , YunQiang Su , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Pavel Dovgalyuk , =?utf-8?b?Sm9obmF0aGFuIEjhu691?= =?utf-8?b?IFRyw60=?= Subject: [PATCH-for-9.1 2/4] linux-user/mips: Select Octeon68XX CPU for Octeon binaries Date: Wed, 14 Aug 2024 15:39:26 +0200 Message-ID: <20240814133928.6746-3-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240814133928.6746-1-philmd@linaro.org> References: <20240814133928.6746-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=philmd@linaro.org; helo=mail-wr1-x42b.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, RCVD_IN_DNSWL_NONE=-0.0001, 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 The Octeon68XX CPU is available since commit 9a6046a655 ("target/mips: introduce Cavium Octeon CPU model"). Cc: Pavel Dovgalyuk Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1722 Reported-by: Johnathan Hữu Trí Suggested-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- linux-user/mips64/target_elf.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/linux-user/mips64/target_elf.h b/linux-user/mips64/target_elf.h index ec55d8542a..ce6fb6541e 100644 --- a/linux-user/mips64/target_elf.h +++ b/linux-user/mips64/target_elf.h @@ -9,6 +9,14 @@ #define MIPS64_TARGET_ELF_H static inline const char *cpu_get_model(uint32_t eflags) { + switch (eflags & EF_MIPS_MACH) { + case EF_MIPS_MACH_OCTEON: + case EF_MIPS_MACH_OCTEON2: + case EF_MIPS_MACH_OCTEON3: + return "Octeon68XX"; + default: + break; + } if ((eflags & EF_MIPS_ARCH) == EF_MIPS_ARCH_64R6) { return "I6400"; }