diff options
author | zhaolichang <zhaolichang@huawei.com> | 2020-09-17 15:50:23 +0800 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2020-09-17 20:37:55 +0200 |
commit | 65fdb3cc2e5b40e5c37ef29068e13f110b70ece4 (patch) | |
tree | 15ebd3523954df92b3e1c2ab2b991f03eddf536b /scripts/decodetree.py | |
parent | 76ca4b58c295e154dfe9c2405141e81ce928c19c (diff) |
scripts/: fix some comment spelling errors
I found that there are many spelling errors in the comments of qemu,
so I used the spellcheck tool to check the spelling errors
and finally found some spelling errors in the scripts folder.
Signed-off-by: zhaolichang <zhaolichang@huawei.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20200917075029.313-5-zhaolichang@huawei.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'scripts/decodetree.py')
-rw-r--r-- | scripts/decodetree.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/decodetree.py b/scripts/decodetree.py index c02de9865b..60fd3b5e5f 100644 --- a/scripts/decodetree.py +++ b/scripts/decodetree.py @@ -94,7 +94,7 @@ def str_indent(c): def str_fields(fields): - """Return a string uniquely identifing FIELDS""" + """Return a string uniquely identifying FIELDS""" r = '' for n in sorted(fields.keys()): r += '_' + n @@ -814,7 +814,7 @@ def parse_generic(lineno, parent_pat, name, toks): arg = None fmt = None for t in toks: - # '&Foo' gives a format an explcit argument set. + # '&Foo' gives a format an explicit argument set. if re.fullmatch(re_arg_ident, t): tt = t[1:] if arg: @@ -903,7 +903,7 @@ def parse_generic(lineno, parent_pat, name, toks): elif not (is_format and width == 0) and width != insnwidth: error(lineno, 'definition has {0} bits'.format(width)) - # Do not check for fields overlaping fields; one valid usage + # Do not check for fields overlapping fields; one valid usage # is to be able to duplicate fields via import. fieldmask = 0 for f in flds.values(): |