target/mips: Store CP0_Config0 in DisasContext
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Wed, 18 Aug 2021 10:12:12 +0000 (12:12 +0200)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Wed, 25 Aug 2021 11:02:14 +0000 (13:02 +0200)
commit0cfd392d7b419cdbe5284b8227d95ab3daaea860
tree3ed3497c00a0d79b4b2c85a413e786659e4e1262
parent23a04dcdf6fa6b34933778b16ee8200027dc6e68
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>
target/mips/tcg/translate.c
target/mips/tcg/translate.h