sstep.h (7fa95f9adaee7e5cbb195d3359741120829e488b) | sstep.h (68a180a44c29d7e918ae7d3c18a01b0751d1c22f) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0-or-later */ 2/* 3 * Copyright (C) 2004 Paul Mackerras <paulus@au.ibm.com>, IBM 4 */ 5#include <asm/inst.h> 6 7struct pt_regs; 8 --- 26 unchanged lines hidden (view full) --- 35 LARX, 36 STCX, 37 BRANCH, 38 MFSPR, 39 MTSPR, 40 CACHEOP, 41 BARRIER, 42 SYSCALL, | 1/* SPDX-License-Identifier: GPL-2.0-or-later */ 2/* 3 * Copyright (C) 2004 Paul Mackerras <paulus@au.ibm.com>, IBM 4 */ 5#include <asm/inst.h> 6 7struct pt_regs; 8 --- 26 unchanged lines hidden (view full) --- 35 LARX, 36 STCX, 37 BRANCH, 38 MFSPR, 39 MTSPR, 40 CACHEOP, 41 BARRIER, 42 SYSCALL, |
43 SYSCALL_VECTORED_0, | |
44 MFMSR, 45 MTMSR, 46 RFI, 47 INTERRUPT, 48 UNKNOWN 49}; 50 51#define INSTR_TYPE_MASK 0x1f --- 48 unchanged lines hidden (view full) --- 100#define SIZE(n) ((n) << 12) 101#define GETSIZE(w) ((w) >> 12) 102 103#define GETTYPE(t) ((t) & INSTR_TYPE_MASK) 104#define GETLENGTH(t) (((t) & PREFIXED) ? 8 : 4) 105 106#define MKOP(t, f, s) ((t) | (f) | SIZE(s)) 107 | 43 MFMSR, 44 MTMSR, 45 RFI, 46 INTERRUPT, 47 UNKNOWN 48}; 49 50#define INSTR_TYPE_MASK 0x1f --- 48 unchanged lines hidden (view full) --- 99#define SIZE(n) ((n) << 12) 100#define GETSIZE(w) ((w) >> 12) 101 102#define GETTYPE(t) ((t) & INSTR_TYPE_MASK) 103#define GETLENGTH(t) (((t) & PREFIXED) ? 8 : 4) 104 105#define MKOP(t, f, s) ((t) | (f) | SIZE(s)) 106 |
107/* Prefix instruction operands */ 108#define GET_PREFIX_RA(i) (((i) >> 16) & 0x1f) 109#define GET_PREFIX_R(i) ((i) & (1ul << 20)) 110 |
|
108struct instruction_op { 109 int type; 110 int reg; 111 unsigned long val; 112 /* For LOAD/STORE/LARX/STCX */ 113 unsigned long ea; 114 int update_reg; 115 /* For MFSPR */ --- 61 unchanged lines hidden --- | 111struct instruction_op { 112 int type; 113 int reg; 114 unsigned long val; 115 /* For LOAD/STORE/LARX/STCX */ 116 unsigned long ea; 117 int update_reg; 118 /* For MFSPR */ --- 61 unchanged lines hidden --- |