From patchwork Wed Jan 3 00:44:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Clark X-Patchwork-Id: 10141509 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 50BF060594 for ; Wed, 3 Jan 2018 00:48:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4494828EC0 for ; Wed, 3 Jan 2018 00:48:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3985C28EC3; Wed, 3 Jan 2018 00:48:17 +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 ECC2F28EC0 for ; Wed, 3 Jan 2018 00:48:16 +0000 (UTC) Received: from localhost ([::1]:33056 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eWXE8-00078U-3H for patchwork-qemu-devel@patchwork.kernel.org; Tue, 02 Jan 2018 19:48:16 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eWXCN-0005VU-4A for qemu-devel@nongnu.org; Tue, 02 Jan 2018 19:46:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eWXCM-0007rV-CS for qemu-devel@nongnu.org; Tue, 02 Jan 2018 19:46:27 -0500 Received: from mail-pl0-x241.google.com ([2607:f8b0:400e:c01::241]:35156) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eWXCM-0007qL-6N for qemu-devel@nongnu.org; Tue, 02 Jan 2018 19:46:26 -0500 Received: by mail-pl0-x241.google.com with SMTP id b96so143296pli.2 for ; Tue, 02 Jan 2018 16:46:26 -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=ju5bQDzrJE9utaXgGYCvLtiSqfwDXIF4spjqPAM0+Mo=; b=ncVr9G3sWnTzlqWp/zgSahDYh21N5nBThhB+CAn2wB58KZgBD84doNsO/KUjWTvuUE 0QI+SkVKdfBZOUXIRFcnLcjH5nrEsr1mXk311DB0u8eVJcJvmqHlU1bFEoeInHtW6mo1 mwCyfDprONAeaWKwJVCk7hIyFgPU+3F5rMDrQJ69zSiJ1Z0F7jvTbYw6u13qZ/na1OrI J/6ZsS13ewBq84y3s3Upuu12Uv9ouHMYPhlltaAlJTmoUTEWXc1LA788jLzWZ6uc/LAI gIi/OPtUIhA1YvDqbVFV/ozC+aJ81xCV67gXu7+xwNH+s/+bKygIrDmBgxUCE6JRQUfq NHXw== 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=ju5bQDzrJE9utaXgGYCvLtiSqfwDXIF4spjqPAM0+Mo=; b=Q765xmucC2UnJONR2GVWB53u9wOYNran80axt35z4rzJVxUeBysGr1/qRczgwJI9+6 SeDiwIp50AWSP7rFbx5e/gD9eg9dMTtZZAmRNHgJOR1o8XncJYyiw57JriTF5ZVWhmvb cPSCF9WuOOFbiEdpVEHoQeDlREjJ7UpCjhMKZTWlB4pP8v309b8ENVphLXMVIhtrW44g WlVApOBGGVkZNIp2GuQtKa14fOo8cLLc2/wymtKdrVxQcedsJoIgAXFioCfv3EaCK5Wr fiLiNJ3C6MU0ltOjTdm2AAPzfSpLq+VQkvMtgmV13A+28eB9vW7WTxXqEoSUELz9TEWQ RbbQ== X-Gm-Message-State: AKGB3mL4xqItzIPr7f96SSTUgvN7Jcf7ABuHOwOcQ/Hze4XScFbSBtmv a0Lbu1qrB4GaUJVo9frhMIIse+1E7Ms= X-Google-Smtp-Source: ACJfBovCTuqeXyG2VKNpIF3dpaKQW81ZymBmYDqiSLcgfQnjxpYD/ZhUWcA8y9aMmE5Wlfxb9jmzeg== X-Received: by 10.84.234.135 with SMTP id n7mr139876plk.298.1514940385223; Tue, 02 Jan 2018 16:46:25 -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 75sm97691351pfo.103.2018.01.02.16.46.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 02 Jan 2018 16:46:24 -0800 (PST) From: Michael Clark To: qemu-devel@nongnu.org Date: Wed, 3 Jan 2018 13:44:06 +1300 Message-Id: <1514940265-18093-3-git-send-email-mjc@sifive.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1514940265-18093-1-git-send-email-mjc@sifive.com> References: <1514940265-18093-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:c01::241 Subject: [Qemu-devel] [PATCH v1 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 , Michael Clark , 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 Signed-off-by: Michael Clark Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis --- 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.