powerpc: Set the NOTE type for SPE regset
authorSuzuki Poulose <suzuki@in.ibm.com>
Tue, 27 Aug 2013 07:52:14 +0000 (13:22 +0530)
committerScott Wood <scottwood@freescale.com>
Tue, 29 Oct 2013 02:11:16 +0000 (21:11 -0500)
The regset defintion for SPE doesn't have the core_note_type
set, which prevents it from being dumped. Add the note type
NT_PPC_SPE for SPE regset.

Signed-off-by: Suzuki K Poulose <suzuki@in.ibm.com>
Cc: Roland McGrath <roland@hack.frob.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/kernel/ptrace.c

index 01be88b7321ed02dd277d9e3bcd26470b17b0528..75fb40498b419c3e8c1f2c639acfaa4f61f419d2 100644 (file)
@@ -658,7 +658,7 @@ static const struct user_regset native_regsets[] = {
 #endif
 #ifdef CONFIG_SPE
        [REGSET_SPE] = {
-               .n = 35,
+               .core_note_type = NT_PPC_SPE, .n = 35,
                .size = sizeof(u32), .align = sizeof(u32),
                .active = evr_active, .get = evr_get, .set = evr_set
        },