From 4baf0c99c55791ceb4ee70646e424fc5fa78ae27 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Fri, 25 Mar 2011 16:43:38 -0700 Subject: [xcc,pk,opcodes,sim] updated encoding/insn names --- pk/handlers.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'pk/handlers.c') diff --git a/pk/handlers.c b/pk/handlers.c index 430210d..d4c3d7c 100644 --- a/pk/handlers.c +++ b/pk/handlers.c @@ -38,6 +38,12 @@ static void handle_illegal_instruction(trapframe_t* tf) panic("An illegal instruction was executed!"); } +static void handle_breakpoint(trapframe_t* tf) +{ + dump_tf(tf); + printk("Breakpoint!\n"); +} + static void handle_misaligned_fetch(trapframe_t* tf) { dump_tf(tf); @@ -100,8 +106,9 @@ void handle_trap(trapframe_t* tf) handle_illegal_instruction, handle_privileged_instruction, handle_fp_disabled, - handle_syscall, handle_interrupt, + handle_syscall, + handle_breakpoint, handle_misaligned_ldst, handle_fault_load, handle_fault_store, -- cgit v1.1