diff options
Diffstat (limited to 'arch/tile/kernel/single_step.c')
-rw-r--r-- | arch/tile/kernel/single_step.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/tile/kernel/single_step.c b/arch/tile/kernel/single_step.c index 4032ca8e51b6..b7a879504086 100644 --- a/arch/tile/kernel/single_step.c +++ b/arch/tile/kernel/single_step.c | |||
@@ -25,9 +25,8 @@ | |||
25 | #include <linux/types.h> | 25 | #include <linux/types.h> |
26 | #include <linux/err.h> | 26 | #include <linux/err.h> |
27 | #include <asm/cacheflush.h> | 27 | #include <asm/cacheflush.h> |
28 | #include <asm/opcode-tile.h> | ||
29 | #include <asm/opcode_constants.h> | ||
30 | #include <arch/abi.h> | 28 | #include <arch/abi.h> |
29 | #include <arch/opcode.h> | ||
31 | 30 | ||
32 | #define signExtend17(val) sign_extend((val), 17) | 31 | #define signExtend17(val) sign_extend((val), 17) |
33 | #define TILE_X1_MASK (0xffffffffULL << 31) | 32 | #define TILE_X1_MASK (0xffffffffULL << 31) |
@@ -118,7 +117,7 @@ static tile_bundle_bits rewrite_load_store_unaligned( | |||
118 | int val_reg, addr_reg, err, val; | 117 | int val_reg, addr_reg, err, val; |
119 | 118 | ||
120 | /* Get address and value registers */ | 119 | /* Get address and value registers */ |
121 | if (bundle & TILE_BUNDLE_Y_ENCODING_MASK) { | 120 | if (bundle & TILEPRO_BUNDLE_Y_ENCODING_MASK) { |
122 | addr_reg = get_SrcA_Y2(bundle); | 121 | addr_reg = get_SrcA_Y2(bundle); |
123 | val_reg = get_SrcBDest_Y2(bundle); | 122 | val_reg = get_SrcBDest_Y2(bundle); |
124 | } else if (mem_op == MEMOP_LOAD || mem_op == MEMOP_LOAD_POSTINCR) { | 123 | } else if (mem_op == MEMOP_LOAD || mem_op == MEMOP_LOAD_POSTINCR) { |
@@ -229,7 +228,7 @@ P("\n"); | |||
229 | } | 228 | } |
230 | ++unaligned_fixup_count; | 229 | ++unaligned_fixup_count; |
231 | 230 | ||
232 | if (bundle & TILE_BUNDLE_Y_ENCODING_MASK) { | 231 | if (bundle & TILEPRO_BUNDLE_Y_ENCODING_MASK) { |
233 | /* Convert the Y2 instruction to a prefetch. */ | 232 | /* Convert the Y2 instruction to a prefetch. */ |
234 | bundle &= ~(create_SrcBDest_Y2(-1) | | 233 | bundle &= ~(create_SrcBDest_Y2(-1) | |
235 | create_Opcode_Y2(-1)); | 234 | create_Opcode_Y2(-1)); |
@@ -389,7 +388,7 @@ void single_step_once(struct pt_regs *regs) | |||
389 | state->branch_next_pc = 0; | 388 | state->branch_next_pc = 0; |
390 | state->update = 0; | 389 | state->update = 0; |
391 | 390 | ||
392 | if (!(bundle & TILE_BUNDLE_Y_ENCODING_MASK)) { | 391 | if (!(bundle & TILEPRO_BUNDLE_Y_ENCODING_MASK)) { |
393 | /* two wide, check for control flow */ | 392 | /* two wide, check for control flow */ |
394 | int opcode = get_Opcode_X1(bundle); | 393 | int opcode = get_Opcode_X1(bundle); |
395 | 394 | ||