From 3dd3a2b965a2d2f5b9c53ab86194b78a546a8fc5 Mon Sep 17 00:00:00 2001 From: Michael Walle Date: Wed, 18 Sep 2013 19:10:45 +0200 Subject: target-lm32: add breakpoint/watchpoint support This patch adds in-target breakpoint and watchpoint support. Signed-off-by: Michael Walle --- target-lm32/translate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'target-lm32/translate.c') diff --git a/target-lm32/translate.c b/target-lm32/translate.c index 93075e4d7c..f20460ab2c 100644 --- a/target-lm32/translate.c +++ b/target-lm32/translate.c @@ -876,7 +876,7 @@ static void dec_wcsr(DisasContext *dc) gen_helper_wcsr_jrx(cpu_env, cpu_R[dc->r1]); break; case CSR_DC: - tcg_gen_mov_tl(cpu_dc, cpu_R[dc->r1]); + gen_helper_wcsr_dc(cpu_env, cpu_R[dc->r1]); break; case CSR_BP0: case CSR_BP1: @@ -888,7 +888,7 @@ static void dec_wcsr(DisasContext *dc) "breakpoint #%i is not available\n", no); break; } - tcg_gen_mov_tl(cpu_bp[no], cpu_R[dc->r1]); + gen_helper_wcsr_bp(cpu_env, cpu_R[dc->r1], tcg_const_i32(no)); break; case CSR_WP0: case CSR_WP1: @@ -900,7 +900,7 @@ static void dec_wcsr(DisasContext *dc) "watchpoint #%i is not available\n", no); break; } - tcg_gen_mov_tl(cpu_wp[no], cpu_R[dc->r1]); + gen_helper_wcsr_wp(cpu_env, cpu_R[dc->r1], tcg_const_i32(no)); break; case CSR_CC: case CSR_CFG: -- cgit v1.2.3