aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/align.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel/align.c')
-rw-r--r--arch/powerpc/kernel/align.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/powerpc/kernel/align.c b/arch/powerpc/kernel/align.c
index 59f70adcbcd9..6e3f9772aaba 100644
--- a/arch/powerpc/kernel/align.c
+++ b/arch/powerpc/kernel/align.c
@@ -652,9 +652,9 @@ static int emulate_vsx(unsigned char __user *addr, unsigned int reg,
652 flush_vsx_to_thread(current); 652 flush_vsx_to_thread(current);
653 653
654 if (reg < 32) 654 if (reg < 32)
655 ptr = (char *) &current->thread.fpr[reg][0]; 655 ptr = (char *) &current->thread.fp_state.fpr[reg][0];
656 else 656 else
657 ptr = (char *) &current->thread.vr[reg - 32]; 657 ptr = (char *) &current->thread.vr_state.vr[reg - 32];
658 658
659 lptr = (unsigned long *) ptr; 659 lptr = (unsigned long *) ptr;
660 660
@@ -944,7 +944,7 @@ int fix_alignment(struct pt_regs *regs)
944 return -EFAULT; 944 return -EFAULT;
945 945
946 } else if (flags & F) { 946 } else if (flags & F) {
947 data.dd = current->thread.TS_FPR(reg); 947 data.ll = current->thread.TS_FPR(reg);
948 if (flags & S) { 948 if (flags & S) {
949 /* Single-precision FP store requires conversion... */ 949 /* Single-precision FP store requires conversion... */
950#ifdef CONFIG_PPC_FPU 950#ifdef CONFIG_PPC_FPU
@@ -1021,7 +1021,7 @@ int fix_alignment(struct pt_regs *regs)
1021 if (unlikely(ret)) 1021 if (unlikely(ret))
1022 return -EFAULT; 1022 return -EFAULT;
1023 } else if (flags & F) 1023 } else if (flags & F)
1024 current->thread.TS_FPR(reg) = data.dd; 1024 current->thread.TS_FPR(reg) = data.ll;
1025 else 1025 else
1026 regs->gpr[reg] = data.ll; 1026 regs->gpr[reg] = data.ll;
1027 1027