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:
Rob Clark 2021-10-12 14:22:25 -07:00 committed by Marge Bot
parent 5b6e5db5d0
commit e01759e6f3
1 changed files with 1 additions and 1 deletions

View File

@ -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: