x86: Move APIC clock divider to Python
authorAndreas Hansson <andreas.hansson@arm.com>
Tue, 19 Feb 2013 10:56:06 +0000 (05:56 -0500)
committerAndreas Hansson <andreas.hansson@arm.com>
Tue, 19 Feb 2013 10:56:06 +0000 (05:56 -0500)
commit5c7ebee434a0328802c01b38c19845c50ae75cab
treefff45deda9f6abdf58a4ba9b103e4b1a8d9460af
parent86a4d092691bdcdc7b60f7cacd7d5b5c54d9a1ca
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.
src/arch/x86/interrupts.cc
src/arch/x86/interrupts.hh
src/arch/x86/utility.cc
src/cpu/BaseCPU.py
src/python/m5/params.py