Timer problem with bochs

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
User avatar
jerryleecooper
Member
Member
Posts: 233
Joined: Mon Aug 06, 2007 6:32 pm
Location: Canada

Timer problem with bochs

Post 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
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

Post by pcmattman »

Bochs tries to emulate as fast as possible, which is why the PIT is sometimes really fast and sometimes really slow.
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post 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)
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

using

Code: Select all

clock: sync=slowdown
will slow down bochs to the correct speed. The realtime clock is only an approximation
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Lprogster
Member
Member
Posts: 174
Joined: Tue Nov 14, 2006 11:59 am

Post by Lprogster »

Yeah, I had this problem a while ago... I don't know why it is the default timing!
Post Reply