From patchwork Thu Feb 8 01:28:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Clark X-Patchwork-Id: 10206415 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 D583060247 for ; Thu, 8 Feb 2018 01:35:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C37B42916F for ; Thu, 8 Feb 2018 01:35:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B5C63291B1; Thu, 8 Feb 2018 01:35:18 +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 12C652916F for ; Thu, 8 Feb 2018 01:35:18 +0000 (UTC) Received: from localhost ([::1]:54644 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejb7N-0006aD-7p for patchwork-qemu-devel@patchwork.kernel.org; Wed, 07 Feb 2018 20:35:17 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejb2b-0002vI-Ul for qemu-devel@nongnu.org; Wed, 07 Feb 2018 20:30:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ejb2a-0001OW-R3 for qemu-devel@nongnu.org; Wed, 07 Feb 2018 20:30:21 -0500 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]:43169) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ejb2a-0001NM-Km for qemu-devel@nongnu.org; Wed, 07 Feb 2018 20:30:20 -0500 Received: by mail-pf0-x243.google.com with SMTP id b62so1129773pfk.10 for ; Wed, 07 Feb 2018 17:30:20 -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=jnpIRVlVd79WrB0IhP8jD1XtZSyjFpWaBsGwhW1InJprm8G52F7Kqfyt1taQbXt/fS fxzWKVYfqcCbRgdPLF2F2w58ezPtzC09CJt0qhUcjXgf2oxOF84SQjL7P35yvbmfpbKz 1TrdZUXuozc2AwLI/1wqFf03grQOH47ZvUOx9LpzSzd/CgsB6hDviG/869EynR+a3Mq4 lr340JhPiDLimLkSvGXAwPVwdHByAJ93kdXkYCrpb4V7nEe68N3bazDDYe5R/KJdHM84 O5YjVlFgGXRWNVhN5zHXpat2a3H9LGczqPOgQL8qN0R3LqQxcqkysw3JD5A0SgYyQNk+ z4lg== 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=ugtk88TJ2VvcyJ695RTNDqIjyFwP3V8tvY9a23Ox7IELD4ldpqSupXUx46DiIZuaR0 ZhOjGhofdFQ3EVbkfvlTyKq+uGXsJdpSH1mBk9h2Fkt3X92QyChlOvYUXAPis74aNsfJ oBMCqYzDXDnIkLf37Aaj9+zHUUJtwzCp4akDk0uXAQE0kvsDRlW6I/5qWfT1yJk2MWRK 58ZDj56gvPIivvJvPnV6kmhcYNPYRIVni8KGKk9pnCAdB3igc2IVNg+V7OxNORlX3sgY IVgf0m98+3z5tPzVJkF8JohptwIPvM9DEFWN/Lj0VjH22LsoNrVyRNLckZSjKTaPxnAS sWZA== X-Gm-Message-State: APf1xPDPX9UTyFTKbXszBO1lZfSsZsjd3r4dDecEMuUwIYg3NoZ/5Z8f /l1HhN+wvHfzdZhjBNd+3CnS+utBK2s= X-Google-Smtp-Source: AH8x225nCw0oCkMN6m7SdjnYzwMYQ0rRS6jSHNTugO4ZfzEzbp1H04fvbE+vJBeb+APl8wOAfAFpiQ== X-Received: by 10.99.152.84 with SMTP id l20mr6516154pgo.145.1518053419454; Wed, 07 Feb 2018 17:30:19 -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 k3sm5097653pff.41.2018.02.07.17.30.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Feb 2018 17:30:18 -0800 (PST) From: Michael Clark To: qemu-devel@nongnu.org Date: Thu, 8 Feb 2018 14:28:27 +1300 Message-Id: <1518053328-34687-3-git-send-email-mjc@sifive.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1518053328-34687-1-git-send-email-mjc@sifive.com> References: <1518053328-34687-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:c00::243 Subject: [Qemu-devel] [PATCH v5 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.