summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel
diff options
context:
space:
mode:
authorRavi Bangoria <ravi.bangoria@linux.ibm.com>2018-05-21 09:51:06 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2018-06-03 21:19:40 +1000
commite6684d07e4308430b9b6497265781a6fb9fd87a0 (patch)
tree6b5e0cadc229825f8c8392c0889d49d751139462 /arch/powerpc/kernel
parent9c2d72d497a32788bf90f05610319a217258129a (diff)
downloadtalos-obmc-linux-e6684d07e4308430b9b6497265781a6fb9fd87a0.tar.gz
talos-obmc-linux-e6684d07e4308430b9b6497265781a6fb9fd87a0.zip
powerpc/sstep: Introduce GETTYPE macro
Replace 'op->type & INSTR_TYPE_MASK' expression with GETTYPE(op->type) macro. Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r--arch/powerpc/kernel/align.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/align.c b/arch/powerpc/kernel/align.c
index 3e6c0744c174..11550a3d1ac2 100644
--- a/arch/powerpc/kernel/align.c
+++ b/arch/powerpc/kernel/align.c
@@ -339,7 +339,7 @@ int fix_alignment(struct pt_regs *regs)
if (r < 0)
return -EINVAL;
- type = op.type & INSTR_TYPE_MASK;
+ type = GETTYPE(op.type);
if (!OP_IS_LOAD_STORE(type)) {
if (op.type != CACHEOP + DCBZ)
return -EINVAL;
OpenPOWER on IntegriCloud