From: Dmitry Selyutin Date: Thu, 7 Sep 2023 19:08:47 +0000 (+0300) Subject: libsvp64: support FPR operands X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e4cecfb4fc7db9f56776aa0d8afcfe29830a49ac;p=openpower-isa.git libsvp64: support FPR operands --- diff --git a/src/libsvp64/codegen.py b/src/libsvp64/codegen.py index bbf32d6c..6faff32b 100644 --- a/src/libsvp64/codegen.py +++ b/src/libsvp64/codegen.py @@ -304,9 +304,13 @@ class DisGenSource(Source): def gpr_handler(span): yield from generic_handler(span, "SVP64_OPERAND_GPR") + def fpr_handler(span): + yield from generic_handler(span, "SVP64_OPERAND_FPR") + handlers = { insndb.SignedOperand: signed_handler, insndb.GPROperand: gpr_handler, + insndb.FPROperand: fpr_handler, } self.emit(f"case 0x{(path + 1):02x}: /* {', '.join(node.names)} */") with self: diff --git a/src/libsvp64/svp64.h b/src/libsvp64/svp64.h index 023bc612..7b502024 100644 --- a/src/libsvp64/svp64.h +++ b/src/libsvp64/svp64.h @@ -34,6 +34,7 @@ struct svp64_operand { #define SVP64_OPERAND_SIGNED (UINT32_C(1) << UINT32_C(0)) #define SVP64_OPERAND_GPR (UINT32_C(1) << UINT32_C(1)) +#define SVP64_OPERAND_FPR (UINT32_C(1) << UINT32_C(2)) struct svp64_ctx { struct svp64_record const *record;