Bochs: How to emulate a 286 or 8086?

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
bob10
Posts: 5
Joined: Wed Dec 08, 2010 5:17 am

Bochs: How to emulate a 286 or 8086?

Post by bob10 »

Hi,

is it possible to configure bochs to emulate only a 80386 and not a 80486/Pentium or newer?
I would like to test my cpuid detection routine...
User avatar
f2
Member
Member
Posts: 311
Joined: Mon Jun 15, 2009 10:01 am
Location: France

Re: Bochs: How to emulate a 286 or 8086?

Post by f2 »

I'm not sure if it's really possible. Maybe by modifying and recompiling Bochs...

However, there's a cpuid option which allows you to disable some features, like MMX, SSE instructions. It is also possible to set the vendor string. Well, it's not really what you want, but it could be useful for you.
"Open source seems to embrace the dark side of human nature." - Ville Turjanmaa
User avatar
Karlosoft
Member
Member
Posts: 277
Joined: Thu Feb 14, 2008 10:46 am
Location: Italy
Contact:

Re: Bochs: How to emulate a 286 or 8086?

Post by Karlosoft »

Hi! In the title you asked for 8086 80286. In the text the 80386. So, what do you want to know? ;)
bob10
Posts: 5
Joined: Wed Dec 08, 2010 5:17 am

Re: Bochs: How to emulate a 286 or 8086?

Post by bob10 »

Sorry.
I want to test an assembler routine, which detectes if CPUID support is available or not.
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:

Re: Bochs: How to emulate a 286 or 8086?

Post by Combuster »

Just configuring bochs with --enable-cpu-level=3 will result in a emulation without CPUID.
"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 ]
Post Reply