Merge tag 'powerpc-6.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc...
[linux-block.git] / arch / powerpc / kernel / ptrace / ptrace-view.c
index 584cf5c3df5093bb7d13a52832fd0341f51af4ca..c1819e0a66842b37f2a0a60ddba9b333dbcab85f 100644 (file)
@@ -469,12 +469,7 @@ static int dexcr_get(struct task_struct *target, const struct user_regset *regse
        if (!cpu_has_feature(CPU_FTR_ARCH_31))
                return -ENODEV;
 
-       /*
-        * The DEXCR is currently static across all CPUs, so we don't
-        * store the target's value anywhere, but the static value
-        * will also be correct.
-        */
-       membuf_store(&to, (u64)lower_32_bits(DEXCR_INIT));
+       membuf_store(&to, (u64)lower_32_bits(target->thread.dexcr));
 
        /*
         * Technically the HDEXCR is per-cpu, but a hypervisor can't reasonably