Skip to content
Snippets Groups Projects
Commit 961738ff authored by Frédéric Pétrot's avatar Frédéric Pétrot Committed by Alistair Francis
Browse files

target/riscv: helper functions to wrap calls to 128-bit csr insns


Given the side effects they have, the csr instructions are realized as
helpers. We extend this existing infrastructure for 128-bit sized csr.
We return 128-bit values using the same approach as for div/rem.
Theses helpers all call a unique function that is currently a fallback
on the 64-bit version.
The trans_csrxx functions supporting 128-bit are yet to be implemented.

Signed-off-by: default avatarFrédéric Pétrot <frederic.petrot@univ-grenoble-alpes.fr>
Co-authored-by: default avatarFabien Portas <fabien.portas@grenoble-inp.org>
Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
Reviewed-by: default avatarAlistair Francis <alistair.francis@wdc.com>
Message-id: 20220106210108.138226-17-frederic.petrot@univ-grenoble-alpes.fr
Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
parent 2c64ab66
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment