mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-05-31 10:07:01 +00:00
target-mips: Fix DisasContext's ulri member initialization
Set DisasContext's ulri member to 0 or 1 as with other bool members. Backports commit 66991d1103562591eba6b801049720976317fe61 from qemu
This commit is contained in:
parent
bbe062a658
commit
49cf18a8ff
|
@ -19289,7 +19289,7 @@ gen_intermediate_code_internal(MIPSCPU *cpu, TranslationBlock *tb,
|
||||||
ctx.bp = (env->CP0_Config3 >> CP0C3_BP) & 1;
|
ctx.bp = (env->CP0_Config3 >> CP0C3_BP) & 1;
|
||||||
/* Restore delay slot state from the tb context. */
|
/* Restore delay slot state from the tb context. */
|
||||||
ctx.hflags = (uint32_t)tb->flags; /* FIXME: maybe use 64 bits here? */
|
ctx.hflags = (uint32_t)tb->flags; /* FIXME: maybe use 64 bits here? */
|
||||||
ctx.ulri = env->CP0_Config3 & (1 << CP0C3_ULRI);
|
ctx.ulri = (env->CP0_Config3 >> CP0C3_ULRI) & 1;
|
||||||
restore_cpu_state(env, &ctx);
|
restore_cpu_state(env, &ctx);
|
||||||
#ifdef CONFIG_USER_ONLY
|
#ifdef CONFIG_USER_ONLY
|
||||||
ctx.mem_idx = MIPS_HFLAG_UM;
|
ctx.mem_idx = MIPS_HFLAG_UM;
|
||||||
|
|
Loading…
Reference in a new issue