decodetree: Fix comparison of Field
commit2c7d442743854d2c1f5475446e088bd523f4bb20
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 11 Jun 2019 15:39:41 +0000 (11 16:39 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 13 Jun 2019 14:14:03 +0000 (13 15:14 +0100)
tree850beea619d48e9a2c1773e1c1a476a4233074ec
parentd67ebada159148bfdfde84871338738e4465e985
decodetree: Fix comparison of Field

Typo comparing the sign of the field, twice, instead of also comparing
the mask of the field (which itself encodes both position and length).

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20190604154225.26992-1-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
scripts/decodetree.py