mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 13:35:35 +00:00
target/mips: Add CP0 Config2 to DisasContext
Add field corresponding to CP0 Config2 to DisasContext. This is needed for availability control via Config2 bits. Backports commit 49735f76db25bf10f57973d5249f17151b801760 from qemu
This commit is contained in:
parent
64bec62433
commit
06cb2b1420
|
@ -1971,6 +1971,7 @@ typedef struct DisasContext {
|
|||
uint32_t opcode;
|
||||
uint64_t insn_flags;
|
||||
int32_t CP0_Config1;
|
||||
int32_t CP0_Config2;
|
||||
int32_t CP0_Config3;
|
||||
int32_t CP0_Config5;
|
||||
/* Routine used to access memory */
|
||||
|
@ -26015,6 +26016,7 @@ static void mips_tr_init_disas_context(DisasContextBase *dcbase, CPUState *cs)
|
|||
ctx->saved_pc = -1;
|
||||
ctx->insn_flags = env->insn_flags;
|
||||
ctx->CP0_Config1 = env->CP0_Config1;
|
||||
ctx->CP0_Config2 = env->CP0_Config2;
|
||||
ctx->CP0_Config3 = env->CP0_Config3;
|
||||
ctx->CP0_Config5 = env->CP0_Config5;
|
||||
ctx->btarget = 0;
|
||||
|
|
Loading…
Reference in a new issue