isaspec: Fix derived field width
The low/high bit positions should be integers. Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13353>
This commit is contained in:
parent
5b6e5db5d0
commit
e01759e6f3
|
@ -165,7 +165,7 @@ class BitSetDerivedField(BitSetField):
|
|||
# where sign extension is needed. We just repurpose the 'high'
|
||||
# field for that to make '1 + high - low' work out
|
||||
if 'width' in xml.attrib:
|
||||
self.high = xml.attrib['width'] + ' - 1'
|
||||
self.high = int(xml.attrib['width']) - 1
|
||||
self.name = xml.attrib['name']
|
||||
self.type = xml.attrib['type']
|
||||
if 'expr' in xml.attrib:
|
||||
|
|
Loading…
Reference in New Issue