Commit 38ffd7ce authored by Jordan Justen's avatar Jordan Justen Committed by Plamena Manolova
Browse files

intel/genxml: Support base-16 in value & start fields in

With python's int(), if the optional second parameter is 0, then
python will support the 0x prefix for hex numbers.
Signed-off-by: Jordan Justen's avatarJordan Justen <>
Reviewed-by: Lionel Landwerlin's avatarLionel Landwerlin <>
parent 232c0f64
......@@ -36,10 +36,10 @@ def get_name(element):
return element.attrib['name']
def get_value(element):
return int(element.attrib['value'])
return int(element.attrib['value'], 0)
def get_start(element):
return int(element.attrib['start'])
return int(element.attrib['start'], 0)
base_types = [
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment