summary refs log tree commit diff stats
path: root/scripts/decodetree.py
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2023-05-23 13:04:43 +0100
committerRichard Henderson <richard.henderson@linaro.org>2023-05-30 10:55:39 -0700
commit7e62609353b88d9aeee9715b534588af351075af (patch)
tree01995f369779e02fd4aad3303c7690da756f8b76 /scripts/decodetree.py
parent656666dc7d1b8508b1a528367e683ad2af5960a3 (diff)
downloadfocaccia-qemu-7e62609353b88d9aeee9715b534588af351075af.tar.gz
focaccia-qemu-7e62609353b88d9aeee9715b534588af351075af.zip
docs: Document decodetree named field syntax
Document the named field syntax that we want to implement for the
decodetree script.  This allows a field to be defined in terms of
some other field that the instruction pattern has already set, for
example:

   %sz_imm 10:3 sz:3 !function=expand_sz_imm

to allow a function to be passed both an immediate field from the
instruction and also a sz value which might have been specified by
the instruction pattern directly (sz=1, etc) rather than being a
simple field within the instruction.

Note that the restriction on not having the format referring to the
pattern and the pattern referring to the format simultaneously is a
restriction of the decoder generator rather than inherently being a
silly thing to do.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230523120447.728365-3-peter.maydell@linaro.org>
Diffstat (limited to 'scripts/decodetree.py')
0 files changed, 0 insertions, 0 deletions