mirror of https://github.com/xemu-project/xemu.git
target/mips: Use enum definitions from CPUMIPSMSADataFormat enum
Replace magic DataFormat value by the corresponding enum from CPUMIPSMSADataFormat. Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20211028210843.2120802-7-f4bug@amsat.org>
This commit is contained in:
parent
340ee8b3f1
commit
7e9db46d64
|
@ -1791,10 +1791,10 @@ static void gen_msa_3rf(DisasContext *ctx)
|
|||
case OPC_MULR_Q_df:
|
||||
case OPC_MADDR_Q_df:
|
||||
case OPC_MSUBR_Q_df:
|
||||
tdf = tcg_constant_i32(df + 1);
|
||||
tdf = tcg_constant_i32(DF_HALF + df);
|
||||
break;
|
||||
default:
|
||||
tdf = tcg_constant_i32(df + 2);
|
||||
tdf = tcg_constant_i32(DF_WORD + df);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -2023,7 +2023,7 @@ static void gen_msa_2rf(DisasContext *ctx)
|
|||
TCGv_i32 twd = tcg_const_i32(wd);
|
||||
TCGv_i32 tws = tcg_const_i32(ws);
|
||||
/* adjust df value for floating-point instruction */
|
||||
TCGv_i32 tdf = tcg_constant_i32(df + 2);
|
||||
TCGv_i32 tdf = tcg_constant_i32(DF_WORD + df);
|
||||
|
||||
switch (MASK_MSA_2RF(ctx->opcode)) {
|
||||
case OPC_FCLASS_df:
|
||||
|
|
Loading…
Reference in New Issue