From 2c9a59dcfc1fc5674a590f6d157f76ce57bd9cac Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Wed, 16 Aug 2023 11:56:03 +0200 Subject: [PATCH] isaspec: Add support for templates If you have a repeating substring you can replace this substring with a template and reference the template name instead. Saves from doing lot of copy&paste and makes general changes to the substring much easier. Signed-off-by: Christian Gmeiner Reviewed-by: Rob Clark Part-of: --- docs/isaspec.rst | 3 +++ src/compiler/isaspec/isa.py | 31 +++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/docs/isaspec.rst b/docs/isaspec.rst index 34e01e7fb3a..b6eae5b4122 100644 --- a/docs/isaspec.rst +++ b/docs/isaspec.rst @@ -208,6 +208,9 @@ some other bitfield (or combination of bitfields). In this example it is used to cover the cases where ``SRCn_R`` has a different meaning and a different disassembly syntax depending on whether ``REPEAT`` equals zero. +The ``