diff --git a/qemu/target/riscv/csr.c b/qemu/target/riscv/csr.c index 32be12e1..cf6f02ea 100644 --- a/qemu/target/riscv/csr.c +++ b/qemu/target/riscv/csr.c @@ -925,7 +925,6 @@ static int read_htinst(CPURISCVState *env, int csrno, target_ulong *val) static int write_htinst(CPURISCVState *env, int csrno, target_ulong val) { - env->htinst = val; return 0; } diff --git a/qemu/target/riscv/op_helper.c b/qemu/target/riscv/op_helper.c index 2219f994..c65223b9 100644 --- a/qemu/target/riscv/op_helper.c +++ b/qemu/target/riscv/op_helper.c @@ -22,6 +22,7 @@ #include "cpu.h" #include "exec/exec-all.h" #include "exec/helper-proto.h" +#include "exec/cpu_ldst.h" /* Exceptions processing helpers */ void QEMU_NORETURN riscv_raise_exception(CPURISCVState *env,