On 10/19/21 2:48 AM, Frédéric Pétrot wrote:
Given the side effects they have, the csr instructions are realized as
helpers. We extend this existing infrastructure for 128-bit sized csr.
We have a slight issue with returning 128-bit values: we use the globals
we added to support div/rem insns to that end.
Theses helpers all call a unique function that is currently a stub.
The trans_csrxx functions supporting 128-bit are yet to be implemented.
Signed-off-by: Frédéric Pétrot<frederic.pet...@univ-grenoble-alpes.fr>
Co-authored-by: Fabien Portas<fabien.por...@grenoble-inp.org>
---
target/riscv/cpu.h | 4 ++++
target/riscv/helper.h | 3 +++
target/riscv/csr.c | 7 +++++++
target/riscv/op_helper.c | 44 ++++++++++++++++++++++++++++++++++++++++
4 files changed, 58 insertions(+)
Reviewed-by: Richard Henderson <richard.hender...@linaro.org>
r~