CPUID is not available when cpu-level=3
This commit is contained in:
parent
28e31422b5
commit
2d1d41e731
@ -431,10 +431,10 @@ void bx_init_options()
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif // CPU_LEVEL >= 4
|
||||
|
||||
cpuid_param->set_options(menu->SHOW_PARENT);
|
||||
|
||||
#endif // CPU_LEVEL >= 4
|
||||
|
||||
// memory subtree
|
||||
bx_list_c *memory = new bx_list_c(root_param, "memory", "Memory Options");
|
||||
bx_list_c *stdmem = new bx_list_c(memory, "standard", "Standard Options");
|
||||
@ -1758,8 +1758,10 @@ void bx_reset_options()
|
||||
// cpu
|
||||
SIM->get_param("cpu")->reset();
|
||||
|
||||
#if BX_CPU_LEVEL >= 4
|
||||
// cpuid
|
||||
SIM->get_param("cpuid")->reset();
|
||||
#endif
|
||||
|
||||
// memory (ram & rom)
|
||||
SIM->get_param("memory")->reset();
|
||||
|
@ -1051,7 +1051,9 @@ void BX_CPU_C::reset(unsigned source)
|
||||
#endif
|
||||
|
||||
// initialize CPUID values - make sure apicbase already initialized
|
||||
#if BX_CPU_LEVEL >= 4
|
||||
set_cpuid_defaults();
|
||||
#endif
|
||||
|
||||
// ignore bad MSRS if user asked for it
|
||||
#if BX_CPU_LEVEL >= 5
|
||||
|
@ -508,7 +508,9 @@ edit_opts_t start_options[] = {
|
||||
{"Logfile", "log"},
|
||||
{"Log Options", "*"},
|
||||
{"CPU", "cpu"},
|
||||
#if BX_CPU_LEVEL >= 4
|
||||
{"CPUID", "cpuid"},
|
||||
#endif
|
||||
{"Memory", "memory"},
|
||||
{"Clock & CMOS", "clock_cmos"},
|
||||
{"PCI", "pci"},
|
||||
|
Loading…
Reference in New Issue
Block a user