[libre-riscv-dev] spike-sv non-default element widths
Luke Kenneth Casson Leighton
lkcl at lkcl.net
Sat Oct 20 00:47:16 BST 2018
On Sat, Oct 20, 2018 at 12:18 AM Jacob Lifshay <programmerjake at gmail.com> wrote:
>
> try compiling using the -fsanitize=undefined flag and/or running inside
> valgrind, that might help. If that doesn't help, i can look in more detail
> later (probably tomorrow).
i think i found it: i used valgrind to ascertain that a memcpy was
getting the wrong sized object in read_chunk() was returning an
address using load_uint64_t, where i had overloaded that, and the code
was using a type "auto" and of course creating an sv_reg_t not a
uint64_t.
i didn't understand it at the time, however by putting "uint64_t
blank[2048]" right at the front of sv_reg_t, which resulted in that
code segfaulting.
l.
More information about the libre-riscv-dev
mailing list