From 7130edac8dd500cf54c0025f728e7ac622d672da Mon Sep 17 00:00:00 2001 From: Rimas Avizienis Date: Mon, 7 Nov 2011 01:03:47 -0800 Subject: [PATCH] fix for flushed div/mul instructions --- rocket/src/main/scala/dpath.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rocket/src/main/scala/dpath.scala b/rocket/src/main/scala/dpath.scala index 7591b31a..55ca866d 100644 --- a/rocket/src/main/scala/dpath.scala +++ b/rocket/src/main/scala/dpath.scala @@ -312,7 +312,7 @@ class rocketDpath extends Component // divider div.io.div_fn := ex_reg_ctrl_div_fn; - div.io.div_val := ex_reg_ctrl_div_val; + div.io.div_val := ex_reg_ctrl_div_val && !io.ctrl.killx; div.io.div_waddr := ex_reg_waddr; div.io.dpath_rs1 := ex_reg_rs1; div.io.dpath_rs2 := ex_reg_rs2; @@ -322,7 +322,7 @@ class rocketDpath extends Component io.ctrl.div_result_val := div.io.div_result_val; // multiplier - mul.io.mul_val := ex_reg_ctrl_mul_val; + mul.io.mul_val := ex_reg_ctrl_mul_val && !io.ctrl.killx; mul.io.mul_fn := ex_reg_ctrl_mul_fn; mul.io.mul_tag := ex_reg_waddr; mul.io.in0 := ex_reg_rs1;