[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HTIF tohost symbol size check always fails

From: Alistair Francis
Subject: Re: HTIF tohost symbol size check always fails
Date: Fri, 16 Oct 2020 11:03:02 -0700

On Fri, Oct 16, 2020 at 7:59 AM Peer Adelt <adelt@hni.upb.de> wrote:
> Hi,
> I have a problem with the RISC-V HTIF device.
> Every binary I have compiled for Spike on riscv32 fails with the following 
> error message: "HTIF tohost must be 8 bytes"
> This happens regardless of which program I have translated for Spike. This is 
> also the case with the official riscv-compliance tests, for example.
> The query "if (st_size != 8)" in the HTIF device always fails, because 
> st_size seems to be always 0.
> To be able to reproduce it:
> - QEMU GIT Hash: d0ed6a69d399ae193959225cdeaa9382746c91cc (tag "v5.1.0")

I just checked with this hash and with the current master and on both
I can run a ELF executable on the Spike machine for RV32.

> - System: Mac OS 10.14.6 (Darwin Kernel Version 18.7.0)
> - Compiler: Latest SiFive Build for GCC under OSX

Maybe try using an official toolchain instead of a vendor fork.


> - Command: qemu-system-riscv32 -M spike -nographic -bios none -kernel 
> Best regards,
> Peer Adelt

reply via email to

[Prev in Thread] Current Thread [Next in Thread]