diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2021-08-18 12:12:12 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2021-08-25 13:02:14 +0200 |
commit | 0cfd392d7b419cdbe5284b8227d95ab3daaea860 (patch) | |
tree | 3ed3497c00a0d79b4b2c85a413e786659e4e1262 /target/mips/tcg/translate.c | |
parent | 23a04dcdf6fa6b34933778b16ee8200027dc6e68 (diff) | |
download | qemu-0cfd392d7b419cdbe5284b8227d95ab3daaea860.zip qemu-0cfd392d7b419cdbe5284b8227d95ab3daaea860.tar.gz qemu-0cfd392d7b419cdbe5284b8227d95ab3daaea860.tar.bz2 |
target/mips: Store CP0_Config0 in DisasContext
Most TCG helpers only have access to a DisasContext pointer,
not CPUMIPSState. Store a copy of CPUMIPSState::CP0_Config0
in DisasContext so we can access it from TCG helpers.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210818164321.2474534-5-f4bug@amsat.org>
Diffstat (limited to 'target/mips/tcg/translate.c')
-rw-r--r-- | target/mips/tcg/translate.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/mips/tcg/translate.c b/target/mips/tcg/translate.c index 40cb1fc..ac97f5f 100644 --- a/target/mips/tcg/translate.c +++ b/target/mips/tcg/translate.c @@ -15979,6 +15979,7 @@ static void mips_tr_init_disas_context(DisasContextBase *dcbase, CPUState *cs) ctx->page_start = ctx->base.pc_first & TARGET_PAGE_MASK; ctx->saved_pc = -1; ctx->insn_flags = env->insn_flags; + ctx->CP0_Config0 = env->CP0_Config0; ctx->CP0_Config1 = env->CP0_Config1; ctx->CP0_Config2 = env->CP0_Config2; ctx->CP0_Config3 = env->CP0_Config3; |