From 84e3b6025930cd474d3ca9f1885801dbc100cecb Mon Sep 17 00:00:00 2001 From: Igor Mammedov Date: Thu, 21 Jun 2012 18:29:38 +0200 Subject: 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 --- cpu-exec.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'cpu-exec.c') diff --git a/cpu-exec.c b/cpu-exec.c index 624c409f7b..24607fbed5 100644 --- a/cpu-exec.c +++ b/cpu-exec.c @@ -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) -- cgit v1.2.1