summaryrefslogtreecommitdiff
path: root/arch/tile/include/asm/opcode-tile_32.h
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2011-05-02 17:49:14 (GMT)
committerChris Metcalf <cmetcalf@tilera.com>2011-05-02 17:49:14 (GMT)
commit93013a0f533fb3dd6875ca670d8e0bb4166a796e (patch)
treeb3967c2853ca9b8a6322d16d70400b10bb25ac53 /arch/tile/include/asm/opcode-tile_32.h
parent8e10cd74342c7f5ce259cceca36f6eba084f5d58 (diff)
downloadlinux-fsl-qoriq-93013a0f533fb3dd6875ca670d8e0bb4166a796e.tar.xz
arch/tile: refactor backtracing code
This change is the result of some work to make the backtrace code more shareable between kernel, libc, and gdb. For the kernel, some good effects are to eliminate the hacky "VirtualAddress" typedef in favor of "unsigned long", to eliminate a bunch of spurious kernel doc comments, to remove the dead "bt_read_memory" function, and to use "__tilegx__" in #ifdefs instead of "TILE_CHIP". Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile/include/asm/opcode-tile_32.h')
-rw-r--r--arch/tile/include/asm/opcode-tile_32.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/tile/include/asm/opcode-tile_32.h b/arch/tile/include/asm/opcode-tile_32.h
index eda60ec..03df7b1 100644
--- a/arch/tile/include/asm/opcode-tile_32.h
+++ b/arch/tile/include/asm/opcode-tile_32.h
@@ -1502,5 +1502,12 @@ extern int parse_insn_tile(tile_bundle_bits bits,
decoded[TILE_MAX_INSTRUCTIONS_PER_BUNDLE]);
+/* Given a set of bundle bits and a specific pipe, returns which
+ * instruction the bundle contains in that pipe.
+ */
+extern const struct tile_opcode *
+find_opcode(tile_bundle_bits bits, tile_pipeline pipe);
+
+
#endif /* opcode_tile_h */