From 6089d8f0c4cd7dbb48bfcddb5bc487c7047abaf4 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 16 Nov 2021 19:13:24 +0000 Subject: [PATCH] truncate CR regspec_decode_write reg mask to 8 bit --- src/openpower/decoder/power_regspec_map.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openpower/decoder/power_regspec_map.py b/src/openpower/decoder/power_regspec_map.py index a7f150ec..5ec5f629 100644 --- a/src/openpower/decoder/power_regspec_map.py +++ b/src/openpower/decoder/power_regspec_map.py @@ -145,7 +145,7 @@ def regspec_decode_write(e, regfile, name): if name == 'full_cr': # full CR (from FXM field) return e.do.write_cr_whole.ok, e.do.write_cr_whole.data if name == 'cr_a': # CR A - return e.write_cr.ok, 1<<(7-e.write_cr.data) + return e.write_cr.ok, (1<<(7-e.write_cr.data))[0:8] # XER regfile -- 2.30.2