diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2013-02-19 05:56:06 -0500 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2013-02-19 05:56:06 -0500 |
commit | 5c7ebee434a0328802c01b38c19845c50ae75cab (patch) | |
tree | fff45deda9f6abdf58a4ba9b103e4b1a8d9460af /src/arch/x86/utility.cc | |
parent | 86a4d092691bdcdc7b60f7cacd7d5b5c54d9a1ca (diff) | |
download | gem5-5c7ebee434a0328802c01b38c19845c50ae75cab.tar.xz |
x86: Move APIC clock divider to Python
This patch moves the 16x APIC clock divider to the Python code to
avoid the post-instantiation modifications to the clock. The x86 APIC
was the only object setting the clock after creation time and this
required some custom functionality and configuration. With this patch,
the clock multiplier is moved to the Python code and the objects are
instantiated with the appropriate clock.
Diffstat (limited to 'src/arch/x86/utility.cc')
-rw-r--r-- | src/arch/x86/utility.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/arch/x86/utility.cc b/src/arch/x86/utility.cc index e56e96b99..ae6c37be6 100644 --- a/src/arch/x86/utility.cc +++ b/src/arch/x86/utility.cc @@ -174,10 +174,6 @@ void initCPU(ThreadContext *tc, int cpuId) interrupts->setRegNoEffect(APIC_VERSION, (5 << 16) | 0x14); - // @todo: Control the relative frequency, in this case 16:1, of - // the clocks in the Python code - interrupts->setClock(tc->getCpuPtr()->clockPeriod() * 16); - // TODO Set the SMRAM base address (SMBASE) to 0x00030000 tc->setMiscReg(MISCREG_VM_CR, 0); |