Skip to content

Commit cc4f6b8

Browse files
MingcongBaiKexyBiscuit
authored andcommitted
AOSCOS: MIPS: math-emu: replace CPU_LOONGSON3 conditions with CPU_LOONGSON64
Per commit 30ad29b ("MIPS: Loongson: Naming style cleanup and rework"), rename the CPU_LOONGSON3 definition as CPU_LOONGSON64. Fixes: "FROMLIST: MIPS: math-emu: Add madd/msub/nmadd/nmsub emulation for Loongson-3" Signed-off-by: Mingcong Bai <[email protected]> Signed-off-by: Kexy Biscuit <[email protected]>
1 parent bd67f27 commit cc4f6b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/mips/math-emu/cp1emu.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,7 @@ static union ieee754sp fpemu_sp_rsqrt(union ieee754sp s)
14511451
return ieee754sp_div(ieee754sp_one(0), ieee754sp_sqrt(s));
14521452
}
14531453

1454-
#ifndef CONFIG_CPU_LOONGSON3
1454+
#ifndef CONFIG_CPU_LOONGSON64
14551455
DEF3OP(madd, sp, ieee754sp_mul, ieee754sp_add, );
14561456
DEF3OP(msub, sp, ieee754sp_mul, ieee754sp_sub, );
14571457
DEF3OP(nmadd, sp, ieee754sp_mul, ieee754sp_add, ieee754sp_neg);
@@ -1515,7 +1515,7 @@ static int fpux_emu(struct pt_regs *xcp, struct mips_fpu_struct *ctx,
15151515
}
15161516
break;
15171517

1518-
#ifdef CONFIG_CPU_LOONGSON3
1518+
#ifdef CONFIG_CPU_LOONGSON64
15191519
case madd_s_op:
15201520
handler = ieee754sp_madd;
15211521
goto scoptop;
@@ -1638,7 +1638,7 @@ static int fpux_emu(struct pt_regs *xcp, struct mips_fpu_struct *ctx,
16381638
}
16391639
break;
16401640

1641-
#ifdef CONFIG_CPU_LOONGSON3
1641+
#ifdef CONFIG_CPU_LOONGSON64
16421642
case madd_d_op:
16431643
handler = ieee754dp_madd;
16441644
goto dcoptop;

0 commit comments

Comments
 (0)