From 54cf4d3409e81a87a270372cbfd26c21aa839ea9 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Thu, 16 Feb 2023 17:04:07 +0100 Subject: [PATCH] Use the logical index for now --- src/emu/metadata.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/emu/metadata.c b/src/emu/metadata.c index 98a6e27..945aa79 100644 --- a/src/emu/metadata.c +++ b/src/emu/metadata.c @@ -96,8 +96,9 @@ load_cpus(struct loom *loom, JSON_Object *meta) } /* Cast from double */ - //int index = (int) json_object_get_number(jcpu, "index"); - int phyid = (int) json_object_get_number(jcpu, "phyid"); + int index = (int) json_object_get_number(jcpu, "index"); + /* FIXME: Use phyid instead */ + //int phyid = (int) json_object_get_number(jcpu, "phyid"); struct cpu *cpu = calloc(1, sizeof(struct cpu)); if (cpu == NULL) { @@ -105,7 +106,7 @@ load_cpus(struct loom *loom, JSON_Object *meta) return -1; } - cpu_init_begin(cpu, phyid, 0); + cpu_init_begin(cpu, index, 0); if (loom_add_cpu(loom, cpu) != 0) { err("loom_add_cpu() failed");