From patchwork Fri Feb 23 00:11:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Clark X-Patchwork-Id: 10236661 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5DCB7602A0 for ; Fri, 23 Feb 2018 00:15:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 345D829093 for ; Fri, 23 Feb 2018 00:15:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 27D6C29097; Fri, 23 Feb 2018 00:15:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EED2229093 for ; Fri, 23 Feb 2018 00:15:47 +0000 (UTC) Received: from localhost ([::1]:41785 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ep11c-0001Z9-Qu for patchwork-qemu-devel@patchwork.kernel.org; Thu, 22 Feb 2018 19:15:44 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ep10A-0000sP-4r for qemu-devel@nongnu.org; Thu, 22 Feb 2018 19:14:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ep0zc-0004yI-8v for qemu-devel@nongnu.org; Thu, 22 Feb 2018 19:14:14 -0500 Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]:42932) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ep0zb-0004wU-V4 for qemu-devel@nongnu.org; Thu, 22 Feb 2018 19:13:40 -0500 Received: by mail-pg0-x241.google.com with SMTP id y8so2663099pgr.9 for ; Thu, 22 Feb 2018 16:13:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yChFABYibKe8P1Dgz3CoxDQYZ0n1BQKjJip+1C9h5S8=; b=fVJVUp96b70258et023E6vvEfsb/Sh8x06lxW9iykxo/jCylq8nNPinj2HOP+Z7KTI 8nF0kAv4U+fC8+KSPX6HViq0Q7mdp6X7dqScobPuB7hOKWn1iBi4SuQ5ao7n9fy7rIjj HDVqvJwcH9bFG0lNJZh4NRKGc4bpKxvpd9xaNkoReCivzOjtl6M5kQX+QLYeWzVtC6Sq rdoPYxBzym0fQNuerR8oGjtTi8xA/Pz7BuP+FTegjtrNsw3UeTTWhVdkPZ5aO4BCHbx9 lrY6JxqHL2RM2BtSuq6/nzTZrfcOW4OlChCTX1X6zS/cuWQbloF/cyBB7sDeeRWtaBxa 3ijw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=yChFABYibKe8P1Dgz3CoxDQYZ0n1BQKjJip+1C9h5S8=; b=ekKgpnSqudNeuOs3oIC/pWrUqkbnhxp1TooF6vGaa8lk1SCiRhMate0c5Ne2tFv608 bN6/Gq7zBBSmUDwdMJXtr3nLnpQRzsy0Tv2x5mpaePsC9eEXynUpDVuHn608dEee0QW1 ddtFSAZ+Rcalz/2JCPcpMmMT4Tvcgu2MQ+pS8bJh/AXcm2Khw7ZzP1ONCk8A4IQIyLEx S1+6VTSwXmDRxiwFu95EWt/Ks8qymAwEZss7M6Tnjgrh9JSaF3sD/C3XOU5ZbwM0JZ3r 3Nt8c6Kxlmp0ap1VnL/0o76YNJuG0INa5vObKLbhuESTC0CgmLcOKFUzMi+z9gcMT8CC 2TOg== X-Gm-Message-State: APf1xPAnrfVbBqQjGhIDQlCgRKn2hO8fMmmbK6Ym9PcigguJRIYmd4uk d4Y7CrD6dufl/g3JwcgRRRGtMtxqW64= X-Google-Smtp-Source: AH8x226gFfbeFBBwhhakNPWVuJXIHbzhThJeMQ+N5flpREN0fMyTgLuS3CBiFgfD+64iEdDhwCg2Mw== X-Received: by 10.99.109.77 with SMTP id i74mr6862155pgc.73.1519344818394; Thu, 22 Feb 2018 16:13:38 -0800 (PST) Received: from localhost.localdomain (125-237-39-90.jetstream.xtra.co.nz. [125.237.39.90]) by smtp.gmail.com with ESMTPSA id u9sm1769551pgb.11.2018.02.22.16.13.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 22 Feb 2018 16:13:37 -0800 (PST) From: Michael Clark To: qemu-devel@nongnu.org Date: Fri, 23 Feb 2018 13:11:48 +1300 Message-Id: <1519344729-73482-3-git-send-email-mjc@sifive.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1519344729-73482-1-git-send-email-mjc@sifive.com> References: <1519344729-73482-1-git-send-email-mjc@sifive.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::241 Subject: [Qemu-devel] [PATCH v6 02/23] RISC-V ELF Machine Definition X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bastian Koppelmann , Michael Clark , Palmer Dabbelt , Sagar Karandikar , RISC-V Patches Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Define RISC-V ELF machine EM_RISCV 243 Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis Signed-off-by: Michael Clark --- include/elf.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/elf.h b/include/elf.h index e8a515c..8e457fc 100644 --- a/include/elf.h +++ b/include/elf.h @@ -112,6 +112,8 @@ typedef int64_t Elf64_Sxword; #define EM_UNICORE32 110 /* UniCore32 */ +#define EM_RISCV 243 /* RISC-V */ + /* * This is an interim value that we will use until the committee comes * up with a final number.