From patchwork Mon Feb 26 22:17:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Clark X-Patchwork-Id: 10243787 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 0521B60386 for ; Mon, 26 Feb 2018 22:20:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DDCF42A42E for ; Mon, 26 Feb 2018 22:20:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D220D2A439; Mon, 26 Feb 2018 22:20:56 +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 6585D2A43C for ; Mon, 26 Feb 2018 22:20:56 +0000 (UTC) Received: from localhost ([::1]:33488 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqR8h-0007Lx-HT for patchwork-qemu-devel@patchwork.kernel.org; Mon, 26 Feb 2018 17:20:55 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqR7A-00061z-Uc for qemu-devel@nongnu.org; Mon, 26 Feb 2018 17:19:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eqR7A-0004q1-4F for qemu-devel@nongnu.org; Mon, 26 Feb 2018 17:19:20 -0500 Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]:41323) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eqR79-0004ox-U8 for qemu-devel@nongnu.org; Mon, 26 Feb 2018 17:19:20 -0500 Received: by mail-pg0-x244.google.com with SMTP id q27so5133868pgn.8 for ; Mon, 26 Feb 2018 14:19:19 -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=VCvTaPgXadEaFifXfEwN0jXBFsfFxYtj5BcgX5riubkY535hdRwi67X+rzy91vQNmE QCdkwPBxhUcL3WtUiaUTRNDrTxSYEuF/cyO6G24qSiUtQgJ7NQET+F6NtM1+pCUo1sKI qvcEJe2lBy0nG+XU8sDbo8AyF6pclA3jc4JGLNfanJBiB8O6Np1lCqpWSWPUAfOv5YPf s734pPgbiBV+gmgHfbmQtKT0jGbOCjrvmrbsYnHtGxQOJM8O8d1MUaKbGWzHwM9zQ3Bw sNzLAB7/73UdvrX4YWl/JMKsFYNMBRYFvIWtpWESFGVT0omnNRtd4ixevZMtynxuWXCj sBjw== 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=kCq4deYv62RA9zKpa06ZbNLLKzjTo2qnGGldtx3KoSUmYa+jRM+ixwTiBMFQILluSe XC8UPZS+nRdo5Yn3t7O7RKZ72bbUbDVVdQNbikFf8WBx8uNkX41FUEFFbWewLNGPp6Vv VgAMbZoqBRgGUE0cywvGam/qtgYHp+89nu5CIOm4soc37PNjsI1di6DdOOgEJRifL0HB RPVftkJZ0B+NROdh8Ac6sRmVIckTIkafP2M/NedJkMCbnIMh6i+bIb+qanSe65gTUGaI bvWHAYHW07pEqGHMbdlqVYteMUAGp0GDr45DNt9IMLoVEmxEnjKJajH6fvIxt/0QiKNr N68g== X-Gm-Message-State: APf1xPAap/ki7QwUiZyrHccwFJZvnbNBkPvA6Q15sXsUE6Vq1hbiIJVV oJYXzHh3lHJirgZMECK+0n9MGbfzSBw= X-Google-Smtp-Source: AH8x226ohP1zqMnaekGxXeb+tmXzzRN7zUpT4hI5FmX0fhXlND0mBepwq80qw35HJzwg10keiRrw0A== X-Received: by 10.101.81.68 with SMTP id g4mr9501656pgq.276.1519683558818; Mon, 26 Feb 2018 14:19:18 -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 n14sm13592702pfj.154.2018.02.26.14.19.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Feb 2018 14:19:18 -0800 (PST) From: Michael Clark To: qemu-devel@nongnu.org Date: Tue, 27 Feb 2018 11:17:39 +1300 Message-Id: <1519683480-33201-3-git-send-email-mjc@sifive.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1519683480-33201-1-git-send-email-mjc@sifive.com> References: <1519683480-33201-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::244 Subject: [Qemu-devel] [PATCH v7 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.