Skip to content

Commit c9e9234

Browse files
authored
Handle inf/nan if dummy2 flag is set
1 parent 624e9d1 commit c9e9234

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

kernel/power/scal_ppc440.S

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363
#endif
6464
#endif
6565

66+
#define FLAG r11
67+
6668
#define FZERO f0
6769
#define ALPHA f1
6870

@@ -88,6 +90,10 @@
8890
fcmpu cr0, FZERO, ALPHA
8991
bne- cr0, LL(A1I1)
9092

93+
lwz FLAG, FRAMESLOT(0)(SP)
94+
cmpwi cr0, FLAG, 1
95+
beq- cr0, LL(A1I1)
96+
9197
srawi. r0, N, 4
9298
mtspr CTR, r0
9399
beq- cr0, LL(A0I1_Remain)

0 commit comments

Comments
 (0)