mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-10-19 00:18:20 +02: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)
|
static int write_htinst(CPURISCVState *env, int csrno, target_ulong val)
|
||||||
{
|
{
|
||||||
env->htinst = val;
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
#include "exec/exec-all.h"
|
#include "exec/exec-all.h"
|
||||||
#include "exec/helper-proto.h"
|
#include "exec/helper-proto.h"
|
||||||
|
#include "exec/cpu_ldst.h"
|
||||||
|
|
||||||
/* Exceptions processing helpers */
|
/* Exceptions processing helpers */
|
||||||
void QEMU_NORETURN riscv_raise_exception(CPURISCVState *env,
|
void QEMU_NORETURN riscv_raise_exception(CPURISCVState *env,
|
||||||
|
Loading…
Reference in New Issue
Block a user