summaryrefslogtreecommitdiff
path: root/disas.h
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2010-03-01 03:55:48 +0000
committerPaul Brook <paul@codesourcery.com>2010-03-01 04:39:50 +0000
commit0a4d5647cc8c1309768be3a6a8fdb503971c2549 (patch)
treea4d9de05081b0d3663d8fc93b43f536ec0908f02 /disas.h
parentd32732b9281e3caa4ee27b26042aac4e20e78294 (diff)
downloadqemu-0a4d5647cc8c1309768be3a6a8fdb503971c2549.tar.gz
qemu-0a4d5647cc8c1309768be3a6a8fdb503971c2549.tar.bz2
qemu-0a4d5647cc8c1309768be3a6a8fdb503971c2549.zip
Disassembler symbol lookup fix
Fix function signature for userspace disassembler symbol lookup. Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'disas.h')
-rw-r--r--disas.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/disas.h b/disas.h
index 06abab21eb..6a9332d6cc 100644
--- a/disas.h
+++ b/disas.h
@@ -22,7 +22,11 @@ struct syminfo;
struct elf32_sym;
struct elf64_sym;
+#if defined(CONFIG_USER_ONLY)
+typedef const char *(*lookup_symbol_t)(struct syminfo *s, target_ulong orig_addr);
+#else
typedef const char *(*lookup_symbol_t)(struct syminfo *s, target_phys_addr_t orig_addr);
+#endif
struct syminfo {
lookup_symbol_t lookup_symbol;