Disassembler symbol lookup fix
Fix function signature for userspace disassembler symbol lookup.
Signed-off-by: Paul Brook <paul@codesourcery.com>
diff --git a/disas.h b/disas.h
index 06abab2..6a9332d 100644
--- a/disas.h
+++ b/disas.h
@@ -22,7 +22,11 @@
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;