From: Luke Kenneth Casson Leighton Date: Thu, 12 Aug 2021 14:20:20 +0000 (+0100) Subject: add ctr_ok and cond_ok to namespace to be able X-Git-Tag: xlen-bcd~136 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=526cb0bc57997e3b180a5d142a40842904639850;p=openpower-isa.git add ctr_ok and cond_ok to namespace to be able to detect if the branch took place or not --- diff --git a/src/openpower/decoder/isa/caller.py b/src/openpower/decoder/isa/caller.py index c0ef32f9..7d8497da 100644 --- a/src/openpower/decoder/isa/caller.py +++ b/src/openpower/decoder/isa/caller.py @@ -770,6 +770,9 @@ class ISACaller: self.namespace['VLI'] = SelectableInt(bc_vli, 1) self.namespace['sz'] = SelectableInt(sz, 1) self.namespace['SNZ'] = SelectableInt(bc_snz, 1) + # use these to detect if the branch took place + self.namespace['ctr_ok'] = SelectableInt(0, 1) + self.namespace['cond_ok'] = SelectableInt(0, 1) def handle_carry_(self, inputs, outputs, already_done): inv_a = yield self.dec2.e.do.invert_in