From: Cesar Strauss Date: Sun, 7 Mar 2021 20:55:39 +0000 (-0300) Subject: Fix missing NIA update on ISACaller X-Git-Tag: convert-csv-opcode-to-binary~89 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bdfa4c5dadd75b197cf009b5ae95f5e3f17bc176;p=soc.git Fix missing NIA update on ISACaller The effect of this bug was mostly hidden because NIA is later updated at the end of the SV Loop, in call(). However, in a VL==0 loop, the effect is apparent, as PC is incremented by 4 instead of 8. --- diff --git a/src/soc/decoder/isa/caller.py b/src/soc/decoder/isa/caller.py index 00f5c8eb..849879b3 100644 --- a/src/soc/decoder/isa/caller.py +++ b/src/soc/decoder/isa/caller.py @@ -1130,6 +1130,7 @@ class ISACaller: pfx.insn[7].value == 0b1 and pfx.insn[9].value == 0b1) self.pc.update_nia(self.is_svp64_mode) + self.namespace['NIA'] = self.pc.NIA if not self.is_svp64_mode: return