qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Emulation of early 486 CPUs (no fpu, no cpuid)
@ 2009-09-01 12:05 bifferos
  2009-09-01 16:39 ` Blue Swirl
  0 siblings, 1 reply; 2+ messages in thread
From: bifferos @ 2009-09-01 12:05 UTC (permalink / raw)
  To: qemu-devel

Hi,

I'm trying to emulate a 486SX CPU, so was wondering how to knock out cpuid and fpu.  I've changed the definition of ID_MASK in target-i386/cpu.h to zero, and this prevents Linux from detecting cpuid capability.  Bit of a hack, because the instruction is still there, but never mind.  I've been trying to work out how to disable fpu emulation so Linux falls back on software emulation.

Can someone throw me a bone?

many thanks.
Biff.





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] Emulation of early 486 CPUs (no fpu, no cpuid)
  2009-09-01 12:05 [Qemu-devel] Emulation of early 486 CPUs (no fpu, no cpuid) bifferos
@ 2009-09-01 16:39 ` Blue Swirl
  0 siblings, 0 replies; 2+ messages in thread
From: Blue Swirl @ 2009-09-01 16:39 UTC (permalink / raw)
  To: bifferos; +Cc: qemu-devel

On Tue, Sep 1, 2009 at 3:05 PM, bifferos<bifferos@yahoo.co.uk> wrote:
> Hi,
>
> I'm trying to emulate a 486SX CPU, so was wondering how to knock out cpuid and fpu.  I've changed the definition of ID_MASK in target-i386/cpu.h to zero, and this prevents Linux from detecting cpuid capability.  Bit of a hack, because the instruction is still there, but never mind.  I've been trying to work out how to disable fpu emulation so Linux falls back on software emulation.
>
> Can someone throw me a bone?

x86 CPU support is a bit primitive compared to PPC, ARM or Sparc. On
those targets there are plenty of CPU types to choose from and if that
is not enough, there are ways to modify the cpu features. The CPU type
also influences instruction translation: without an FPU, floating
point instructions trap on Sparc.

There may be an order of magnitude more x86 CPU types than all other
targets combined, so we may not want to support all of them but at
least the x86 feature selection support and translation should be more
flexible.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-09-01 16:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-01 12:05 [Qemu-devel] Emulation of early 486 CPUs (no fpu, no cpuid) bifferos
2009-09-01 16:39 ` Blue Swirl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).