mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-02 06:01:00 +00:00
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). Backports commit 2c7d442743854d2c1f5475446e088bd523f4bb20 from qemu
This commit is contained in:
parent
afaea6a291
commit
7c03c8eb04
|
@ -318,7 +318,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)
|
||||
|
|
Loading…
Reference in a new issue