From 1f2a29c06b122d2af83d3d81e3e2c492ceca0c4d Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 5 Jul 2022 14:20:11 +0100 Subject: [PATCH] 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 --- src/soc/fu/mul/pipe_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2