From: Jiri Denemark <[email protected]>

QEMU defines some CPU models with hexadecimal family, but our CPU map
loading code expects decimals.

Signed-off-by: Jiri Denemark <[email protected]>
---
 src/cpu_map/sync_qemu_models_i386.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/cpu_map/sync_qemu_models_i386.py 
b/src/cpu_map/sync_qemu_models_i386.py
index e144609c82..7094797079 100755
--- a/src/cpu_map/sync_qemu_models_i386.py
+++ b/src/cpu_map/sync_qemu_models_i386.py
@@ -522,8 +522,8 @@ def expand_model(outdir, model):
     }
 
     if ".family" in model and ".model" in model:
-        result["signature"].append((model.pop(".family"),
-                                    model.pop(".model"),
+        result["signature"].append((str(int(model.pop(".family"), base=0)),
+                                    str(int(model.pop(".model"), base=0)),
                                     None))
 
     for k in [k for k in model if k.startswith(".features")]:
-- 
2.54.0

Reply via email to