From: Luke Kenneth Casson Leighton Date: Tue, 5 Jul 2022 13:20:11 +0000 (+0100) Subject: MulOutputData was only 64-bit output not 128-bit X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1f2a29c06b122d2af83d3d81e3e2c492ceca0c4d;p=soc.git MulOutputData was only 64-bit output not 128-bit meaning that mulhd is truncated (always zero) https://bugs.libre-soc.org/show_bug.cgi?id=855 --- diff --git a/src/soc/fu/mul/pipe_data.py b/src/soc/fu/mul/pipe_data.py index ded4c508..a5047be7 100644 --- a/src/soc/fu/mul/pipe_data.py +++ b/src/soc/fu/mul/pipe_data.py @@ -25,7 +25,7 @@ class MulOutputData(FUBaseData): @property def regspec(self): - return [('INT', 'o', "0:%d" % (self.pspec.XLEN)), + return [('INT', 'o', "0:%d" % (self.pspec.XLEN*2)), # 2xXLEN ('XER', 'xer_so', '32')] # XER bit 32: SO