From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57733) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fM6z6-0006Ca-R4 for qemu-devel@nongnu.org; Fri, 25 May 2018 03:17:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fM6z5-0005Bv-Fp for qemu-devel@nongnu.org; Fri, 25 May 2018 03:17:56 -0400 Received: from mail-ot0-x242.google.com ([2607:f8b0:4003:c0f::242]:38752) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fM6z5-0005Bk-6G for qemu-devel@nongnu.org; Fri, 25 May 2018 03:17:55 -0400 Received: by mail-ot0-x242.google.com with SMTP id n3-v6so4998230ota.5 for ; Fri, 25 May 2018 00:17:55 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <55782969-dd50-ae80-8006-ed53c3d48ca5@vivier.eu> References: <1527034517-7851-1-git-send-email-mjc@sifive.com> <1527034517-7851-28-git-send-email-mjc@sifive.com> <55782969-dd50-ae80-8006-ed53c3d48ca5@vivier.eu> From: Michael Clark Date: Fri, 25 May 2018 19:17:54 +1200 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v1 27/30] elf: Add RISC-V PSABI ELF header defines List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier Cc: QEMU Developers , RISC-V Patches , Michael Tokarev , Richard Henderson , Alistair Francis On Wed, May 23, 2018 at 6:44 PM, Laurent Vivier wrote: > Le 23/05/2018 =C3=A0 02:15, Michael Clark a =C3=A9crit : > > Refer to the RISC-V PSABI specification for details: > > > > - https://github.com/riscv/riscv-elf-psabi-doc/blob/master/riscv-elf.md > > > > Cc: Michael Tokarev > > Cc: Laurent Vivier > > Cc: Richard Henderson > > Cc: Alistair Francis > > Signed-off-by: Michael Clark > > --- > > include/elf.h | 8 ++++++++ > > 1 file changed, 8 insertions(+) > > > > diff --git a/include/elf.h b/include/elf.h > > index 934dbbd6b3ae..d363ba85a688 100644 > > --- a/include/elf.h > > +++ b/include/elf.h > > @@ -1285,6 +1285,14 @@ typedef struct { > > #define R_IA64_DTPREL64LSB 0xb7 /* @dtprel(sym + add), data8 LSB = */ > > #define R_IA64_LTOFF_DTPREL22 0xba /* @ltoff(@dtprel(s+a)), > imm22 */ > > > > +/* RISC-V specific definitions. */ > > +#define EF_RISCV_RVC 0x0001 > > +#define EF_RISCV_FLOAT_ABI_SINGLE 0x0002 > > +#define EF_RISCV_FLOAT_ABI_DOUBLE 0x0004 > > +#define EF_RISCV_FLOAT_ABI_QUAD (0x0006 > ^ > Typo here -------------------------| > Thanks! My mistake. The original patch had only EF_RISCV_RVE, which is the define we need for a subsequent patch, however I decided to add the remaining flags from the spec and indeed there was a paren in the spec. I'll respin this as a separate patch.