From patchwork Wed Jan 10 23:46:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Clark X-Patchwork-Id: 10156349 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 19B5960223 for ; Wed, 10 Jan 2018 23:50:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F30A928686 for ; Wed, 10 Jan 2018 23:50:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E75F228635; Wed, 10 Jan 2018 23:50:30 +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 741E728635 for ; Wed, 10 Jan 2018 23:50:30 +0000 (UTC) Received: from localhost ([::1]:50366 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZQ8b-0007Uy-Ne for patchwork-qemu-devel@patchwork.kernel.org; Wed, 10 Jan 2018 18:50:29 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44689) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZQ78-0006CR-JZ for qemu-devel@nongnu.org; Wed, 10 Jan 2018 18:48:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZQ74-0000Ja-BZ for qemu-devel@nongnu.org; Wed, 10 Jan 2018 18:48:58 -0500 Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]:34711) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eZQ73-0000J7-Sb for qemu-devel@nongnu.org; Wed, 10 Jan 2018 18:48:54 -0500 Received: by mail-pg0-x243.google.com with SMTP id j4so1130905pgp.1 for ; Wed, 10 Jan 2018 15:48:53 -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=SUBUVYb5d384M4vJFZT5ZP0zIuWQz1Fm8WdZjk5iAws=; b=ibZplBR5EzmotY0QIsS6nBDWWh0GCag7bsGmQDcDYQgBmpM3ul4DqKLlwurmlR8LU1 BEmEdw0GNJoUgOiFOn2pjtB8WLryQ5JylGqH/gNx8p6aktnc/AFz3AECse7qfi1L5xfL v7BiVFCrh5suN/pmB30vdbkbS7Co8S8NpW4/HYA+UDRESvAqGH/LsdlFnBFEuuGcuFsQ xnHabhIaeCwN91NUn1e93YWMmuyqsDAtCN9se3O31MqnMH8rcc5+2m7fUsX3mxG49dfg FHw8ES1u4VJ0O9qfcE9BEZAFlJJBeI2v7OdQFmFYvJDjLWnQhrfczLr1T+Y5E+XbUG/I DGNw== 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=SUBUVYb5d384M4vJFZT5ZP0zIuWQz1Fm8WdZjk5iAws=; b=ndOFaB7FoPf7CIs/EPk5fK+QVxpmcwJyfDgGCa+AuBCjhm8+AifCLYljnVP7IiKBC+ z2jKAps4Eihe2pVQk5lvL2mozwaO6ogkTcyWJ3ffjB6mqYByQMc/9zEP8tSKpXOMKep2 zskUveaVVZ7tiPk5+k+SeJRXvx8EnEC2JHtELiO+dgycfDnzyde737SGiFaP0FXLgzU2 V3kzUBtd9CYl+1vtEhTuBx843GO1AywfBwUSACnVGxbBJKJ1iofiJ9PyMXxJEIg9jJI5 G/t2jbVj8Mu0pjBt56AW+n5TPBTI4DJ0p0w16q8YyTplUF2UinZf2KJ0VPFbTUiB4I0m mhhw== X-Gm-Message-State: AKGB3mJWmTH2xON45cNmGJ/f7Lqg5n5qX6NS9tqfIRTnoAmENxBET+0n hlLdMnAkhDtaYQgALhwoa7nfp4d9Emc= X-Google-Smtp-Source: ACJfBotad4f/q9csUmyblFyfCU+h4cx39rU+5Vu1F2Mg+71yiTcWdnrmwJT53UBqkDK53Hk8M7tUKQ== X-Received: by 10.84.211.105 with SMTP id b96mr20486676pli.451.1515628132808; Wed, 10 Jan 2018 15:48:52 -0800 (PST) Received: from monty.com ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id g74sm9931676pfd.166.2018.01.10.15.48.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 Jan 2018 15:48:52 -0800 (PST) From: Michael Clark To: qemu-devel@nongnu.org Date: Wed, 10 Jan 2018 15:46:21 -0800 Message-Id: <1515628000-93285-3-git-send-email-mjc@sifive.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1515628000-93285-1-git-send-email-mjc@sifive.com> References: <1515628000-93285-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::243 Subject: [Qemu-devel] [PATCH v2 02/21] 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 , RISC-V Patches , Michael Clark , Palmer Dabbelt , Sagar Karandikar 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 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.