diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-10-11 03:23:53 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-10-11 03:23:53 -0400 |
commit | 3ad26e5c4459d3793ad65bc8929037c70515df83 (patch) | |
tree | 434327df7942878383e372988eb5f3bccb25de12 /arch/powerpc/kernel/align.c | |
parent | 5293bf97a27e1be8ac6096aa198ff6a9e3e6837c (diff) | |
parent | 18461960cbf50bf345ef0667d45d5f64de8fb893 (diff) |
Merge branch 'for-kvm' into next
Topic branch for commits that the KVM tree might want to pull
in separately.
Hand merged a few files due to conflicts with the LE stuff
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/align.c')
-rw-r--r-- | arch/powerpc/kernel/align.c | 8 |
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 *) ¤t->thread.fpr[reg][0]; | 655 | ptr = (char *) ¤t->thread.fp_state.fpr[reg][0]; |
656 | else | 656 | else |
657 | ptr = (char *) ¤t->thread.vr[reg - 32]; | 657 | ptr = (char *) ¤t->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 | ||