target/riscv: Don't allow guest to write to htinst

Backports e2eb5ca8f66c239f6194afda88cad455e42725ef
This commit is contained in:
Alistair Francis 2021-03-08 13:22:46 -05:00 committed by Lioncash
parent 4972437f93
commit 7ceb984b60
2 changed files with 1 additions and 1 deletions

View File

@ -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;
}

View File

@ -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,