From 2bc876ba071ad53a8f3ecefe1bac6b9ddde890d2 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 3 Dec 2023 11:32:28 +0000 Subject: [PATCH] bug 1231: all dc* instructions to be treated as nop https://bugs.libre-soc.org/show_bug.cgi?id=1231#c1 --- src/openpower/decoder/isa/caller.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/openpower/decoder/isa/caller.py b/src/openpower/decoder/isa/caller.py index c5ed6857..be785028 100644 --- a/src/openpower/decoder/isa/caller.py +++ b/src/openpower/decoder/isa/caller.py @@ -2104,6 +2104,11 @@ class ISACaller(ISACallerHelper, ISAFPHelpers, StepLoop): illegal = False ins_name = dotstrp + # match against instructions treated as nop, see nop below + if asmop.startswith("dc"): + illegal = False + ins_name = "nop" + # branch-conditional redirects to sv.bc if asmop.startswith('bc') and self.is_svp64_mode: ins_name = 'sv.%s' % ins_name -- 2.30.2