Page 1 of 1

Bochs hlt panic

Posted: Tue Apr 19, 2005 12:27 pm
by srg
Hi

In previouse versions of bochs, if there is a hlt called with IF=0, it would pause (hault) and warn you. This is excellent as you can then just carry on or setup forward. I'm sure I've seen other people on this forum do this and it's very convenient.

I've just tried this with Bochs 2.2.pre2 win32 binary and rather than just halting, it now panics. I can see no configure options either for turning this on or off (that' another thing, I couldn't get it to compile anyway).

shame, is there any way to stop this?

thanks
srg

Re:Bochs hlt panic

Posted: Tue Apr 19, 2005 1:18 pm
by Brendan
Hi,
srg wrote:I've just tried this with Bochs 2.2.pre2 win32 binary and rather than just halting, it now panics. I can see no configure options either for turning this on or off (that' another thing, I couldn't get it to compile anyway).
I had the same thing. In your "bochsrc.txt" make sure you've got "panic: action=ask", and then when it does panic tell it to enter the debugger (instead of 'die'). Then you should be able to continue...

An alternative would be to use:

Code: Select all

  push ecx
  mov ecx,0
.zz:
  jecxz .zz
  pop ecx
The you could stop Bochs with control+C and type "set $ecx=1" to get it started again.

BTW I couldn't get Bochs 2.1.1 to compile on Windows (something about a missing library IIRC) - I didn't try it for the new/beta release.


Cheers,

Brendan

Re:Bochs hlt panic

Posted: Tue Apr 19, 2005 1:25 pm
by srg
My trouble was in paging.cc AFAIK.

Didn't have trouble compiling 2.1.1 when I tried it once ( may try it again one day).

srg

Re:Bochs hlt panic

Posted: Tue Apr 19, 2005 1:47 pm
by AR
Brendan wrote:BTW I couldn't get Bochs 2.1.1 to compile on Windows (something about a missing library IIRC) - I didn't try it for the new/beta release.
I think I remember trying to build it using MSVC++ 7 and it choked, I don't have any trouble on Cygwin though.