[libre-riscv-dev] spike-sv non-default element widths

lkcl lkcl at libre-riscv.org
Thu Oct 11 21:57:25 BST 2018


ok i've managed to redirect what was formerly globally-declared
effectively c-only-style functions into a class, and i've also learned
(thanks to stackexchange) that the c preprocessor is capable of being
told not to expand out a macro if a function has exactly the same
name.  it's very simple: put brackets round the function name:

extern void (WRITE_RD)(reg_t value);

so what i plan to do is: now that there exists a *class* that all the
instruction opcodes are "implemented" in, i can add functions that
overrule WRITE_RD, READ_REG, and everything else, and make the
replacement functions understand the concept of elementt width.

i'll do one function at a time, replacing them with direct
equivalents, before beginning actually adding in elwidth.

l.



More information about the libre-riscv-dev mailing list