mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-25 13:19:22 +00:00
target-mips: convert single case switch into if statement
Backports commit 00fb4a118142650e7fa3d5007b197bc11fec6ea9 from qemu
This commit is contained in:
parent
49cf18a8ff
commit
30e7d6e4a4
1 changed files with 3 additions and 6 deletions
|
@ -1883,13 +1883,10 @@ static inline void gen_r6_cmp_ ## fmt(DisasContext * ctx, int n, \
|
||||||
int ft, int fs, int fd) \
|
int ft, int fs, int fd) \
|
||||||
{ \
|
{ \
|
||||||
TCGContext *tcg_ctx = ctx->uc->tcg_ctx; \
|
TCGContext *tcg_ctx = ctx->uc->tcg_ctx; \
|
||||||
TCGv_i ## bits fp0 = tcg_temp_new_i ## bits(tcg_ctx); \
|
TCGv_i ## bits fp0 = tcg_temp_new_i ## bits(tcg_ctx); \
|
||||||
TCGv_i ## bits fp1 = tcg_temp_new_i ## bits(tcg_ctx); \
|
TCGv_i ## bits fp1 = tcg_temp_new_i ## bits(tcg_ctx); \
|
||||||
switch (ifmt) { \
|
if (ifmt == FMT_D) { \
|
||||||
default: break; \
|
|
||||||
case FMT_D: \
|
|
||||||
check_cp1_registers(ctx, fs | ft | fd); \
|
check_cp1_registers(ctx, fs | ft | fd); \
|
||||||
break; \
|
|
||||||
} \
|
} \
|
||||||
gen_ldcmp_fpr ## bits(ctx, fp0, fs); \
|
gen_ldcmp_fpr ## bits(ctx, fp0, fs); \
|
||||||
gen_ldcmp_fpr ## bits(ctx, fp1, ft); \
|
gen_ldcmp_fpr ## bits(ctx, fp1, ft); \
|
||||||
|
|
Loading…
Reference in a new issue