Skip to content

Commit

Permalink
target/mips: Add CP0 Config2 to DisasContext
Browse files Browse the repository at this point in the history
Add field corresponding to CP0 Config2 to DisasContext. This is
needed for availability control via Config2 bits.

Reviewed-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Stefan Markovic <smarkovic@wavecomp.com>
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
  • Loading branch information
Stefan Markovic authored and AMarkovic committed Oct 18, 2018
1 parent 908f6be commit 49735f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions target/mips/translate.c
Expand Up @@ -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 */
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 49735f7

Please sign in to comment.