From patchwork Tue Dec 21 16:47:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 526595 Delivered-To: patch@linaro.org Received: by 2002:a05:6e04:2287:0:0:0:0 with SMTP id bl7csp5222658imb; Tue, 21 Dec 2021 08:48:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJxo3MmhOFrjEnO1qlQM/bqyTKosWMAOXOGMgJ20vyYejApmL9tzybsJk5aDFuR5qntq3sQu X-Received: by 2002:a05:622a:164e:: with SMTP id y14mr2947826qtj.651.1640105337673; Tue, 21 Dec 2021 08:48:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1640105337; cv=none; d=google.com; s=arc-20160816; b=svL1Cthk+HnbnJQ3tr26HxEfIfi202OtdtlqDpxnwTFFlFR/qwhcXWibg6z9HYnZjT FPwCdzR35qGTuLCg02+gIezqBgKiyXEvxOYDrsvtm1izn2QWDNZVn2yToRGWDrCPCPRg v4Tvm2l0l5uyVvjCxb/5aP0PWcpbaKcyvJbu9pZIHdBkwGPh8LC+WYsx/5+PDRPjB0B8 fjJZju4K6O/+giR+AEY8wzw0I0tKjS2Zn1d+sUH9LwZIf/5DVlZ0Mk5xZf7XH4sfDKJs EspOZUfnGN5sPXXMkVMDDHu8T5jmTwPcMtvynhAMHW5i3mwrs26HzzSg3zrLyeGF6cUU o4Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from :dkim-signature; bh=+Py+EjlgiNuKFcv4guGE3lJAZOnNjGvtb46J0VGe4hU=; b=nYnRIvSY0NDTq45BfsIzQnexttKrqd6PwQJDwblSyA884BPNIyPCQrbQeikVTHHoZe dY5LixKie2l1pLJLXXgbcdYcDt26pMuwcRf1bcshU6K7FrH04LBnSUk6G4+H8tGTMKgG aaEQ4WP5FHyd78FknA7x26Qbm9gxXYEhIl8rTfFRxLFUyWT7XIbfusBMeGgkJ9Ll+8Qb oNVfsWhEx/3K52VegG3bK4VXftVGj3Xuw8x4MTdMRHCOycDkMRJArWTgz7Q9ESjN71gZ 0wMONZXCz2LtzbV8AD6ldMP3yUFMycbcQZlRStFR0R5iAvhlYAry+mcmYxAzVaBYAEje kHwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TkBcyIEx; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id l200si584466qke.660.2021.12.21.08.48.57 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 21 Dec 2021 08:48:57 -0800 (PST) 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=TkBcyIEx; 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 Received: from localhost ([::1]:37296 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mziJs-0008Hf-Ao for patch@linaro.org; Tue, 21 Dec 2021 11:48:56 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55626) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mziIh-0008FU-VT for qemu-devel@nongnu.org; Tue, 21 Dec 2021 11:47:43 -0500 Received: from [2607:f8b0:4864:20::102d] (port=45741 helo=mail-pj1-x102d.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mziIf-0007aD-IA for qemu-devel@nongnu.org; Tue, 21 Dec 2021 11:47:43 -0500 Received: by mail-pj1-x102d.google.com with SMTP id f18-20020a17090aa79200b001ad9cb23022so3725100pjq.4 for ; Tue, 21 Dec 2021 08:47:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+Py+EjlgiNuKFcv4guGE3lJAZOnNjGvtb46J0VGe4hU=; b=TkBcyIExVGJMc+rwT31njotMvU6wmfPztJcf0g7M+iubcIrR4F9JGTsqvc5ofzamt8 EJOM7xz0wl9zLNGjicUHTwO9KbtbNSXdHbjqtPl7XI2iDlXpFt9HTGUwa8GAPbaJcRo9 DTxBdmCIm6KUIqUH2/7y53qQbrHImNICpPjVmbdxoAqEH44iGI4suN5ufY429z225vZz 1V9LzOh9Rr/IaPUCz5Q/YFxFALtijUZEJTWY0/46yPEgXEDujhQVhrNvFYMgfjy5hpVt MvP3QqqxOwPdzlZxe0egc2AgH/Yw28mJA6ZOi2q95Ab+0VeI+dRkHnOSgljNP3pKQ1k8 kqbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+Py+EjlgiNuKFcv4guGE3lJAZOnNjGvtb46J0VGe4hU=; b=voJAfR1mPMR60hfb6E8VW7/rQZv8XysTyq+qHPoUSb6sKbmOYKICikf86TzXbodlUc jRTEWx/rgySjTxqsNwp0vivo3XGOgKupmMiJ41dcsAE/AgBe+5uaCIiD9h74MwnLRmLE LUaXkXYSwHdnxLQX8Vb85KlfT4jjPsSgPEps7DT5ROhX4wmXEdVjTRaI/LjaUn4AmJ7t Ni9P1oH7vJCt+YeA8Fjb/c7IwbQo2JuqX+6hBmmepaUaHnUxomoHcgDAQZQNaafQ4Ujq JnwqFJeYtsnGX/qNLE6yBs7h1KMGfAvdUgf8ZuCT/OZgUJpoQ3Gat4pMxfaXQhcCSN7D T2jQ== X-Gm-Message-State: AOAM531BTWOAt+33r3A4H4lq9KiUH5jLqeeN1fe1Y0G86wsQyDmPUGvw C7/WEQ4pYQdpT4ha6OdM0G62mC1gMxnmdQ== X-Received: by 2002:a17:90a:d792:: with SMTP id z18mr4961289pju.182.1640105260154; Tue, 21 Dec 2021 08:47:40 -0800 (PST) Received: from localhost.localdomain ([156.19.246.20]) by smtp.gmail.com with ESMTPSA id b192sm2256818pga.35.2021.12.21.08.47.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Dec 2021 08:47:39 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 01/31] elf: Add machine type value for LoongArch Date: Tue, 21 Dec 2021 08:47:07 -0800 Message-Id: <20211221164737.1076007-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211221164737.1076007-1-richard.henderson@linaro.org> References: <20211221164737.1076007-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::102d (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::102d; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102d.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Cc: WANG Xuerui , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: WANG Xuerui This is already officially allocated as recorded in GNU binutils repo [1], and the description is updated in [2]. Add to enable further work. [1]: https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=4cf2ad720078a9f490dd5b5bc8893a926479196e [2]: https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=01a8c731aacbdbed0eb5682d13cc074dc7e25fb3 Signed-off-by: WANG Xuerui Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20211221054105.178795-2-git@xen0n.name> Signed-off-by: Richard Henderson --- include/elf.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/elf.h b/include/elf.h index 811bf4a1cb..3a4bcb646a 100644 --- a/include/elf.h +++ b/include/elf.h @@ -182,6 +182,8 @@ typedef struct mips_elf_abiflags_v0 { #define EM_NANOMIPS 249 /* Wave Computing nanoMIPS */ +#define EM_LOONGARCH 258 /* LoongArch */ + /* * This is an interim value that we will use until the committee comes * up with a final number.