summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-11-20 13:53:51 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-11-20 21:48:36 +0100
commit774d5d3c92fd44b89a00a064f4ff460609a0e177 (patch)
treef1462fed591632fc4ab9fdcb4575696ebafd274f
parent288dc96fedfeb1a1da35720419120cac2979050d (diff)
ddb/db_run.c: move declaration of brpc into SOFTWARE_SSTEP
* ddb/db_run.c (brpc): Move declaration into SOFTWARE_SSTEP code.
-rw-r--r--ddb/db_run.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ddb/db_run.c b/ddb/db_run.c
index a595af8..f528b39 100644
--- a/ddb/db_run.c
+++ b/ddb/db_run.c
@@ -171,7 +171,7 @@ db_restart_at_pc(watchpt, task)
boolean_t watchpt;
task_t task;
{
- db_addr_t pc = PC_REGS(DDB_REGS), brpc;
+ db_addr_t pc = PC_REGS(DDB_REGS);
if ((db_run_mode == STEP_COUNT) ||
(db_run_mode == STEP_RETURN) ||
@@ -187,6 +187,7 @@ db_restart_at_pc(watchpt, task)
db_load_count += inst_load(ins);
db_store_count += inst_store(ins);
#ifdef SOFTWARE_SSTEP
+ db_addr_t brpc;
/* Account for instructions in delay slots */
brpc = next_instr_address(pc, 1, task);
if ((brpc != pc) && (inst_branch(ins) || inst_call(ins))) {