From e50c6f0df1233b0764b523e50677bd85ffafd171 Mon Sep 17 00:00:00 2001 From: Stefan Schippers Date: Sat, 20 Jan 2024 19:40:49 +0100 Subject: [PATCH] pass instance `device_models=...` attribute through translate() so @vars are resolved --- src/spice_netlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spice_netlist.c b/src/spice_netlist.c index 4b8fab65..ddbbaa3f 100644 --- a/src/spice_netlist.c +++ b/src/spice_netlist.c @@ -216,7 +216,7 @@ static int spice_netlist(FILE *fd, int spice_stop ) fprintf(fd, "**** end_element\n"); } /* hash device_model attribute if any */ - m = get_tok_value(xctx->inst[i].prop_ptr, "device_model", 0); + m = translate(i, get_tok_value(xctx->inst[i].prop_ptr, "device_model", 0)); if(m[0]) str_hash_lookup(&model_table, model_name(m), m, XINSERT); else { m = get_tok_value( (xctx->inst[i].ptr+ xctx->sym)->prop_ptr, "device_model", 0);