OSDN Git Service

decodetree: Improve identifier matching
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 3 Sep 2020 19:23:34 +0000 (12:23 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 14 Sep 2020 13:23:19 +0000 (14:23 +0100)
commitacfdd2398dc929d4e87507b8acbdc19c88379e0e
treebe066aa0b91acca1715a88f27393d372de35f5af
parentc9ebc8c207e997c01d459529fd83ffd85c66cf9d
decodetree: Improve identifier matching

Only argument set members have to be C identifiers, everything
else gets prefixed during conversion to C.  Some places just
checked the leading character, and some places matched a leading
character plus a C identifier.

Convert everything to match full identifiers, including the
[&%@&] prefix, and drop the full C identifier requirement.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20200903192334.1603773-1-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
scripts/decodetree.py
tests/decode/succ_ident1.decode [new file with mode: 0644]