Re: [m5-dev] when to fake BIOS initialization

2008-05-31 Thread nathan binkert
There's construction, then SimObject::init(), then SimObject::regStats(), then SimObject::startup() The first three are caused by the instantiate() call in Python, the last is caused by the first call to simulate() from Python. See src/python/m5/simulate.py Nate On Fri, May 30, 2008 at 10:49

[m5-dev] when to fake BIOS initialization

2008-05-30 Thread Gabe Black
The kernel is assuming that timer 0 has been set up to count with a period of 0 (which is effectively 0x, it's maximum value) by the BIOS during system bring up. It's trying to watch the value of the timers count in order to switch from using the PIT for interrupts to the APIC right

Re: [m5-dev] when to fake BIOS initialization

2008-05-30 Thread Ali Saidi
Why can't you just stick it in the constructor? You'll need to serialize that timer value when a checkpoint is dropped and create an event when the checkpoint is restored from, but you would need to do that anyway. You can take a look at how we serialize the PIT for an idea. Ali On May

Re: [m5-dev] when to fake BIOS initialization

2008-05-30 Thread nathan binkert
I concur with Ali. On Fri, May 30, 2008 at 5:39 PM, Ali Saidi [EMAIL PROTECTED] wrote: Why can't you just stick it in the constructor? You'll need to serialize that timer value when a checkpoint is dropped and create an event when the checkpoint is restored from, but you would need to do that