From 66fbb0badf0f4bd2fe29daff7e572cdc60ab72f4 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sun, 16 Feb 2020 10:46:35 -0800 Subject: Set version reg and TAS behavior based on model config --- config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config.c') diff --git a/config.c b/config.c index 9874166..36a36db 100644 --- a/config.c +++ b/config.c @@ -6,6 +6,7 @@ #include "tern.h" #include "util.h" #include "paths.h" +#include "config.h" #include #include #include @@ -334,6 +335,6 @@ tern_node *get_systems_config(void) tern_node *get_model(tern_node *config, system_type stype) { - char *model = tern_find_path_default(config, "system\0model\0", (tern_val){.ptrval = "md1va3"}, TVAL_PTR); + char *model = tern_find_path_default(config, "system\0model\0", (tern_val){.ptrval = "md1va3"}, TVAL_PTR).ptrval; return tern_find_node(get_systems_config(), model); } -- cgit v1.2.3