]> git.baikalelectronics.ru Git - kernel.git/commitdiff
powerpc/lib/sstep: Add XER bits introduced in POWER ISA v3.0
authorSandipan Das <sandipan@linux.vnet.ibm.com>
Fri, 29 Sep 2017 05:44:08 +0000 (11:14 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 4 Oct 2017 00:28:03 +0000 (11:28 +1100)
This adds definitions for the OV32 and CA32 bits of XER that
were introduced in POWER ISA v3.0. There are some existing
instructions that currently set the OV and CA bits based on
certain conditions.

The emulation behaviour of all these instructions needs to
be updated to set these new bits accordingly.

Signed-off-by: Sandipan Das <sandipan@linux.vnet.ibm.com>
Acked-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/lib/sstep.c

index 5e8418c28bd884bd854818755b61b06fcff776e6..16814bfc01dab98080a46ea2902938cdbf003493 100644 (file)
@@ -31,6 +31,8 @@ extern char system_call_common[];
 #define XER_SO         0x80000000U
 #define XER_OV         0x40000000U
 #define XER_CA         0x20000000U
+#define XER_OV32       0x00080000U
+#define XER_CA32       0x00040000U
 
 #ifdef CONFIG_PPC_FPU
 /*