From: Richard Henderson Date: Tue, 11 Jun 2019 15:39:41 +0000 (+0100) Subject: decodetree: Fix comparison of Field X-Git-Tag: v4.1.0-rc0~55^2~41 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2c7d442743854d2c1f5475446e088bd523f4bb20;p=thirdparty%2Fqemu.git 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 Signed-off-by: Richard Henderson Message-id: 20190604154225.26992-1-richard.henderson@linaro.org Reviewed-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Peter Maydell --- diff --git a/scripts/decodetree.py b/scripts/decodetree.py index 81874e22cc7..d7a59d63ac3 100755 --- a/scripts/decodetree.py +++ b/scripts/decodetree.py @@ -184,7 +184,7 @@ class Field: return '{0}(insn, {1}, {2})'.format(extr, self.pos, self.len) def __eq__(self, other): - return self.sign == other.sign and self.sign == other.sign + return self.sign == other.sign and self.mask == other.mask def __ne__(self, other): return not self.__eq__(other)