CPUID is not available when cpu-level=3

This commit is contained in:
Stanislav Shwartsman 2011-02-25 16:27:01 +00:00
parent 28e31422b5
commit 2d1d41e731
3 changed files with 8 additions and 2 deletions

View File

@ -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();

View File

@ -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

View File

@ -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"},