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:
Stefan Markovic 2018-10-23 13:43:00 -04:00 committed by Lioncash
parent 64bec62433
commit 06cb2b1420
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

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