patch-2.3.99-pre4 linux/arch/ppc/math-emu/math.c

Next file: linux/arch/ppc/math-emu/sfp-machine.h
Previous file: linux/arch/ppc/lib/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre3/linux/arch/ppc/math-emu/math.c linux/arch/ppc/math-emu/math.c
@@ -233,14 +233,14 @@
 	case LFD:
 		idx = (insn >> 16) & 0x1f;
 		sdisp = (insn & 0xffff);
-		op0 = (void *)&current->tss.fpr[(insn >> 21) & 0x1f];
+		op0 = (void *)&current->thread.fpr[(insn >> 21) & 0x1f];
 		op1 = (void *)((idx ? regs->gpr[idx] : 0) + sdisp);
 		lfd(op0, op1, op2, op3);
 		break;
 	case LFDU:
 		idx = (insn >> 16) & 0x1f;
 		sdisp = (insn & 0xffff);
-		op0 = (void *)&current->tss.fpr[(insn >> 21) & 0x1f];
+		op0 = (void *)&current->thread.fpr[(insn >> 21) & 0x1f];
 		op1 = (void *)((idx ? regs->gpr[idx] : 0) + sdisp);
 		lfd(op0, op1, op2, op3);
 		regs->gpr[idx] = (unsigned long)op1;
@@ -248,21 +248,21 @@
 	case STFD:
 		idx = (insn >> 16) & 0x1f;
 		sdisp = (insn & 0xffff);
-		op0 = (void *)&current->tss.fpr[(insn >> 21) & 0x1f];
+		op0 = (void *)&current->thread.fpr[(insn >> 21) & 0x1f];
 		op1 = (void *)((idx ? regs->gpr[idx] : 0) + sdisp);
 		stfd(op0, op1, op2, op3);
 		break;
 	case STFDU:
 		idx = (insn >> 16) & 0x1f;
 		sdisp = (insn & 0xffff);
-		op0 = (void *)&current->tss.fpr[(insn >> 21) & 0x1f];
+		op0 = (void *)&current->thread.fpr[(insn >> 21) & 0x1f];
 		op1 = (void *)((idx ? regs->gpr[idx] : 0) + sdisp);
 		stfd(op0, op1, op2, op3);
 		regs->gpr[idx] = (unsigned long)op1;
 		break;
 	case OP63:
-		op0 = (void *)&current->tss.fpr[(insn >> 21) & 0x1f];
-		op1 = (void *)&current->tss.fpr[(insn >> 11) & 0x1f];
+		op0 = (void *)&current->thread.fpr[(insn >> 21) & 0x1f];
+		op1 = (void *)&current->thread.fpr[(insn >> 11) & 0x1f];
 		fmr(op0, op1, op2, op3);
 		break;
 	default:
@@ -359,28 +359,28 @@
 
 	switch (type) {
 	case AB:
-		op0 = (void *)&current->tss.fpr[(insn >> 21) & 0x1f];
-		op1 = (void *)&current->tss.fpr[(insn >> 16) & 0x1f];
-		op2 = (void *)&current->tss.fpr[(insn >> 11) & 0x1f];
+		op0 = (void *)&current->thread.fpr[(insn >> 21) & 0x1f];
+		op1 = (void *)&current->thread.fpr[(insn >> 16) & 0x1f];
+		op2 = (void *)&current->thread.fpr[(insn >> 11) & 0x1f];
 		break;
 
 	case AC:
-		op0 = (void *)&current->tss.fpr[(insn >> 21) & 0x1f];
-		op1 = (void *)&current->tss.fpr[(insn >> 16) & 0x1f];
-		op2 = (void *)&current->tss.fpr[(insn >>  6) & 0x1f];
+		op0 = (void *)&current->thread.fpr[(insn >> 21) & 0x1f];
+		op1 = (void *)&current->thread.fpr[(insn >> 16) & 0x1f];
+		op2 = (void *)&current->thread.fpr[(insn >>  6) & 0x1f];
 		break;
 
 	case ABC:
-		op0 = (void *)&current->tss.fpr[(insn >> 21) & 0x1f];
-		op1 = (void *)&current->tss.fpr[(insn >> 16) & 0x1f];
-		op2 = (void *)&current->tss.fpr[(insn >> 11) & 0x1f];
-		op3 = (void *)&current->tss.fpr[(insn >>  6) & 0x1f];
+		op0 = (void *)&current->thread.fpr[(insn >> 21) & 0x1f];
+		op1 = (void *)&current->thread.fpr[(insn >> 16) & 0x1f];
+		op2 = (void *)&current->thread.fpr[(insn >> 11) & 0x1f];
+		op3 = (void *)&current->thread.fpr[(insn >>  6) & 0x1f];
 		break;
 
 	case D:
 		idx = (insn >> 16) & 0x1f;
 		sdisp = (insn & 0xffff);
-		op0 = (void *)&current->tss.fpr[(insn >> 21) & 0x1f];
+		op0 = (void *)&current->thread.fpr[(insn >> 21) & 0x1f];
 		op1 = (void *)((idx ? regs->gpr[idx] : 0) + sdisp);
 		break;
 
@@ -390,22 +390,22 @@
 			goto illegal;
 
 		sdisp = (insn & 0xffff);
-		op0 = (void *)&current->tss.fpr[(insn >> 21) & 0x1f];
+		op0 = (void *)&current->thread.fpr[(insn >> 21) & 0x1f];
 		op1 = (void *)(regs->gpr[idx] + sdisp);
 		break;
 
 	case X:
-		op0 = (void *)&current->tss.fpr[(insn >> 21) & 0x1f];
+		op0 = (void *)&current->thread.fpr[(insn >> 21) & 0x1f];
 		break;
 
 	case XA:
-		op0 = (void *)&current->tss.fpr[(insn >> 21) & 0x1f];
-		op1 = (void *)&current->tss.fpr[(insn >> 16) & 0x1f];
+		op0 = (void *)&current->thread.fpr[(insn >> 21) & 0x1f];
+		op1 = (void *)&current->thread.fpr[(insn >> 16) & 0x1f];
 		break;
 
 	case XB:
-		op0 = (void *)&current->tss.fpr[(insn >> 21) & 0x1f];
-		op1 = (void *)&current->tss.fpr[(insn >> 11) & 0x1f];
+		op0 = (void *)&current->thread.fpr[(insn >> 21) & 0x1f];
+		op1 = (void *)&current->thread.fpr[(insn >> 11) & 0x1f];
 		break;
 
 	case XE:
@@ -413,13 +413,13 @@
 		if (!idx)
 			goto illegal;
 
-		op0 = (void *)&current->tss.fpr[(insn >> 21) & 0x1f];
+		op0 = (void *)&current->thread.fpr[(insn >> 21) & 0x1f];
 		op1 = (void *)(regs->gpr[idx] + regs->gpr[(insn >> 11) & 0x1f]);
 		break;
 
 	case XEU:
 		idx = (insn >> 16) & 0x1f;
-		op0 = (void *)&current->tss.fpr[(insn >> 21) & 0x1f];
+		op0 = (void *)&current->thread.fpr[(insn >> 21) & 0x1f];
 		op1 = (void *)((idx ? regs->gpr[idx] : 0)
 				+ regs->gpr[(insn >> 11) & 0x1f]);
 		break;
@@ -427,8 +427,8 @@
 	case XCR:
 		op0 = (void *)&regs->ccr;
 		op1 = (void *)((insn >> 23) & 0x7);
-		op2 = (void *)&current->tss.fpr[(insn >> 16) & 0x1f];
-		op3 = (void *)&current->tss.fpr[(insn >> 11) & 0x1f];
+		op2 = (void *)&current->thread.fpr[(insn >> 16) & 0x1f];
+		op3 = (void *)&current->thread.fpr[(insn >> 11) & 0x1f];
 		break;
 
 	case XCRL:
@@ -448,7 +448,7 @@
 
 	case XFLB:
 		op0 = (void *)((insn >> 17) & 0xff);
-		op1 = (void *)&current->tss.fpr[(insn >> 11) & 0x1f];
+		op1 = (void *)&current->thread.fpr[(insn >> 11) & 0x1f];
 		break;
 
 	default:

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)