From 49735f76db25bf10f57973d5249f17151b801760 Mon Sep 17 00:00:00 2001 From: Stefan Markovic Date: Tue, 16 Oct 2018 16:59:18 +0200 Subject: target/mips: Add CP0 Config2 to DisasContext MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add field corresponding to CP0 Config2 to DisasContext. This is needed for availability control via Config2 bits. Reviewed-by: Aleksandar Markovic Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Stefan Markovic Signed-off-by: Aleksandar Markovic --- target/mips/translate.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'target/mips') diff --git a/target/mips/translate.c b/target/mips/translate.c index 1f10f48bc0..e26d54ac8c 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -1988,6 +1988,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 */ @@ -25835,6 +25836,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; -- cgit v1.2.3