Page 1 of 1

Timer problem with bochs

Posted: Fri Aug 24, 2007 8:13 pm
by jerryleecooper
I played with the PIT a bit, and I saw some problem with one emulator. Bochs get it all wrong. Qemu and Virtual PC shows the processes correctly, their messages at correct frequency, but bochs is too fast. I just hope it's not a newbie error, but there's no shame if it is :cry: :x

Posted: Fri Aug 24, 2007 9:23 pm
by pcmattman
Bochs tries to emulate as fast as possible, which is why the PIT is sometimes really fast and sometimes really slow.

Posted: Sat Aug 25, 2007 3:55 am
by JamesM
adding this:

Code: Select all

clock: sync=realtime
To your bochsrc puts it at a more reasonable rate. I still have reason to believe it's incorrect though (slightly too fast)

Posted: Sat Aug 25, 2007 4:58 am
by Combuster
using

Code: Select all

clock: sync=slowdown
will slow down bochs to the correct speed. The realtime clock is only an approximation

Posted: Sat Aug 25, 2007 5:41 am
by Lprogster
Yeah, I had this problem a while ago... I don't know why it is the default timing!