projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3276f29
)
fix bug and manually check div overflow code against instruction models
author
Jacob Lifshay
<programmerjake@gmail.com>
Thu, 18 Jun 2020 22:27:39 +0000
(15:27 -0700)
committer
Jacob Lifshay
<programmerjake@gmail.com>
Thu, 18 Jun 2020 22:27:39 +0000
(15:27 -0700)
src/soc/fu/div/output_stage.py
patch
|
blob
|
history
diff --git
a/src/soc/fu/div/output_stage.py
b/src/soc/fu/div/output_stage.py
index eb4461e061313f80665aced8adf91a70de3b4482..6265fcbc7ced241c3cb304e444f57374a39dcc2c 100644
(file)
--- 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