Bochs hlt panic

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
srg

Bochs hlt panic

Post 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
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re:Bochs hlt panic

Post 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
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
srg

Re:Bochs hlt panic

Post 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
AR

Re:Bochs hlt panic

Post 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.
Post Reply