diff options
author | Igor Mammedov <imammedo@redhat.com> | 2012-06-21 18:29:38 +0200 |
---|---|---|
committer | Igor Mammedov <imammedo@redhat.com> | 2012-06-25 15:37:15 +0200 |
commit | 84e3b6025930cd474d3ca9f1885801dbc100cecb (patch) | |
tree | 04be35078ef88303093f422447c988495b78f1b6 /cpu-exec.c | |
parent | eeec69dc06a0b87a578f4935bbd699d03bc4f359 (diff) | |
download | qemu-84e3b6025930cd474d3ca9f1885801dbc100cecb.zip qemu-84e3b6025930cd474d3ca9f1885801dbc100cecb.tar.gz qemu-84e3b6025930cd474d3ca9f1885801dbc100cecb.tar.bz2 |
cleanup cpu_set_debug_excp_handler
There are no users left for previous exception handler returned from
cpu_set_debug_excp_handler. It should simplify code a little.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Diffstat (limited to 'cpu-exec.c')
-rw-r--r-- | cpu-exec.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -156,12 +156,9 @@ static inline TranslationBlock *tb_find_fast(CPUArchState *env) static CPUDebugExcpHandler *debug_excp_handler; -CPUDebugExcpHandler *cpu_set_debug_excp_handler(CPUDebugExcpHandler *handler) +void cpu_set_debug_excp_handler(CPUDebugExcpHandler *handler) { - CPUDebugExcpHandler *old_handler = debug_excp_handler; - debug_excp_handler = handler; - return old_handler; } static void cpu_handle_debug_exception(CPUArchState *env) |