Skip to content

Commit

Permalink
Added specific error message for the removed cpu model choice bx_gene…
Browse files Browse the repository at this point in the history
…ric.

It is useful when using older config file and should be removed after next release.
  • Loading branch information
vruppert committed Dec 27, 2024
1 parent d2defe5 commit f35eaca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bochs/config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2814,6 +2814,8 @@ static int parse_line_formatted(const char *context, int num_params, char *param
SIM->get_param_num(BXPN_CPU_NPROCESSORS)->set(processors);
SIM->get_param_num(BXPN_CPU_NCORES)->set(cores);
SIM->get_param_num(BXPN_CPU_NTHREADS)->set(threads);
} else if (!strcmp(params[i], "model=bx_generic")) {
PARSE_ERR(("%s: cpu: This model choice is no longer supported, use pre-defined CPU models", context));
} else if (bx_parse_param_from_list(context, params[i], (bx_list_c*) SIM->get_param("cpu")) < 0) {
PARSE_ERR(("%s: cpu directive malformed.", context));
}
Expand Down

0 comments on commit f35eaca

Please sign in to comment.