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

2008-05-31 Thread Gabe Black
I don't, and will not, "just do" anything. It will work, just do it. Ali Gabe Gabe Black wrote: Two reasons. First, the BIOS is supposed to do that so if possible I'd like to keep it out of the device itself. That's not a big deal since it wouldn't be too hard to move if there ends up b

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

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

2008-05-31 Thread Ali Saidi
On May 31, 2008, at 1:49 AM, Gabe Black wrote: One other reason I just thought of is the same as the problem O3 had with pointers and things not being completely constructed yet. If the platform has a pointer to the device, that pointer will be valid at time of construction. The O3 is a spec

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

2008-05-30 Thread Gabe Black
One other reason I just thought of is the same as the problem O3 had with pointers and things not being completely constructed yet. I want to put the code that sets up the timer in the platform since that's more in line with the timer being configured a certain way to start, aka it's a standard

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

2008-05-30 Thread Gabe Black
Two reasons. First, the BIOS is supposed to do that so if possible I'd like to keep it out of the device itself. That's not a big deal since it wouldn't be too hard to move if there ends up being an actual BIOS at some point. Second, I was concerned that initializing it in the constructor and t

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 t

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 3

[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 afte