From 526cb0bc57997e3b180a5d142a40842904639850 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 12 Aug 2021 15:20:20 +0100 Subject: [PATCH] add ctr_ok and cond_ok to namespace to be able to detect if the branch took place or not --- src/openpower/decoder/isa/caller.py | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.30.2