mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-03 16:35:46 +00:00
target/riscv: Don't allow guest to write to htinst
Backports e2eb5ca8f66c239f6194afda88cad455e42725ef
This commit is contained in:
parent
4972437f93
commit
7ceb984b60
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue