From 87116a86bd3be9b6e6aa0ab6cb582ecf204b4c44 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Thu, 18 Jun 2020 15:27:39 -0700 Subject: [PATCH] fix bug and manually check div overflow code against instruction models --- src/soc/fu/div/output_stage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/fu/div/output_stage.py b/src/soc/fu/div/output_stage.py index eb4461e0..6265fcbc 100644 --- a/src/soc/fu/div/output_stage.py +++ b/src/soc/fu/div/output_stage.py @@ -78,7 +78,7 @@ class DivOutputStage(PipeModBase): with m.If(op.is_32bit): calc_overflow(self.i.dive_abs_overflow_32, 0x8000_0000) with m.Else(): - calc_overflow(self.i.dive_abs_overflow_32, 0x8000_0000_0000_0000) + calc_overflow(self.i.dive_abs_overflow_64, 0x8000_0000_0000_0000) ########################## # main switch for DIV -- 2.30.2