mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
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>
This commit is contained in:
parent
c9ebc8c207
commit
acfdd2398d
2 changed files with 37 additions and 16 deletions
7
tests/decode/succ_ident1.decode
Normal file
7
tests/decode/succ_ident1.decode
Normal file
|
@ -0,0 +1,7 @@
|
|||
%1f 0:8
|
||||
%2f 8:8
|
||||
%3f 16:8
|
||||
|
||||
&3arg a b c
|
||||
@3arg ........ ........ ........ ........ &3arg a=%1f b=%2f c=%3f
|
||||
3insn 00000000 ........ ........ ........ @3arg
|
Loading…
Add table
Add a link
Reference in a new issue