From: Luke Kenneth Casson Leighton Date: Thu, 27 Apr 2023 20:01:28 +0000 (+0100) Subject: add implicit rs detection for maddsubrs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e2c9d511cca1d29192bd6f9bf07b69013ce33ed2;p=openpower-isa.git add implicit rs detection for maddsubrs --- diff --git a/src/openpower/decoder/power_decoder2.py b/src/openpower/decoder/power_decoder2.py index 88b20238..2b9af402 100644 --- a/src/openpower/decoder/power_decoder2.py +++ b/src/openpower/decoder/power_decoder2.py @@ -1066,6 +1066,12 @@ class PowerDecodeSubset(Elaboratable): )): comb += self.implicit_rs.eq(1) comb += self.extend_rc_maxvl.eq(1) # RS=RT+MAXVL or RS=RC + # implicit RS for major 22, integer maddsubrs + with m.If((major == 22) & xo6.matches( + '-01000', # maddsubrs + )): + comb += self.implicit_rs.eq(1) + comb += self.extend_rb_maxvl.eq(1) # extend RB # rc and oe out comb += self.do_copy("rc", dec_rc.rc_out)