forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 297b60346df8beafee954a0fd7c2d64f33f3b9bc
kernel/arch/x86/math-emu/errors.c
....@@ -178,13 +178,15 @@
178178 for (i = 0; i < 8; i++) {
179179 FPU_REG *r = &st(i);
180180 u_char tagi = FPU_gettagi(i);
181
+
181182 switch (tagi) {
182183 case TAG_Empty:
183184 continue;
184
- break;
185185 case TAG_Zero:
186186 case TAG_Special:
187
+ /* Update tagi for the printk below */
187188 tagi = FPU_Special(r);
189
+ fallthrough;
188190 case TAG_Valid:
189191 printk("st(%d) %c .%04lx %04lx %04lx %04lx e%+-6d ", i,
190192 getsign(r) ? '-' : '+',
....@@ -198,7 +200,6 @@
198200 printk("Whoops! Error in errors.c: tag%d is %d ", i,
199201 tagi);
200202 continue;
201
- break;
202203 }
203204 printk("%s\n", tag_desc[(int)(unsigned)tagi]);
204205 }