Re: [m5-dev] panic vs. fatal

2008-05-28 Thread nathan binkert
panic() -- An assert that isn't compiled out fatal() -- some configuration parameter caused a problem Ok, I thought so. Do we want to keep these names? I will promise that I have learned finally, but the names seem a bit to synonymous to me. I will go through my code and convert the proper

Re: [m5-dev] panic vs. fatal

2008-05-28 Thread Ali Saidi
On May 28, 2008, at 11:23 AM, nathan binkert wrote: panic() -- An assert that isn't compiled out fatal() -- some configuration parameter caused a problem Ok, I thought so. Do we want to keep these names? I will promise that I have learned finally, but the names seem a bit to synonymous to

Re: [m5-dev] panic vs. fatal

2008-05-28 Thread Gabe Black
I've always remembered it as the simulator panicking when something unexpected happens, definitely not including user error, and fatal is the other one. I almost always use panic because I don't deal with user input and configuration that much, although putting in more of that is part of what

Re: [m5-dev] panic vs. fatal

2008-05-28 Thread nathan binkert
I don't know if it's worth spending time adding more indirection to the error path so python can print an error. If the error is fatal python isn't going to be able to correct it and continue. I don't plan to make it part of the standard run, but I plan to make it either something that happens