From 9f9f030928a3d17ea8b87905fafc1e447328df2d Mon Sep 17 00:00:00 2001 From: Paul Brook Date: Mon, 1 Mar 2010 03:55:48 +0000 Subject: Disassembler symbol lookup fix Fix function signature for userspace disassembler symbol lookup. Signed-off-by: Paul Brook --- disas.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'disas.h') 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; -- cgit v1.2.1