Re: [Qemu-devel] 16-bit (and 8-bit) emulation

2007-04-17 Thread Todd T. Fries
[EMAIL PROTECTED]/p1 ~/src/c/todd/test?100$ ./sizeof sizeof(char) = 1 sizeof(short) = 2 sizeof(int) = 4 sizeof(char *) = 4 sizeof(long) = 4 sizeof(long long) = 8 [EMAIL PROTECTED]/p1 ~/src/c/todd/test?101$ uname -a OpenBSD cloud.fries.net 4.1 GENERIC#7 mac68k [EMAIL PROTECTED]/p1 ~/src/c/todd/test?

Re: [Qemu-devel] 16-bit (and 8-bit) emulation

2007-04-16 Thread Natalia Portillo
Windows 3.1 is not an OS. And there is no Windows for 286 protected mode. There is OS/2 and UNIXen but none works (OS/2 2.0 and later UNIXen works but they are 386 protected mode) El mar, 17-04-2007 a las 00:35 +0100, Derek Fawcus escribió: > On Sun, Apr 15, 2007 at 08:55:17PM +0100, Natalia Por

Re: [Qemu-devel] 16-bit (and 8-bit) emulation

2007-04-16 Thread Derek Fawcus
On Sun, Apr 15, 2007 at 08:55:17PM +0100, Natalia Portillo wrote: > Yes but... > > Currently no protected mode 286 guest OS runs under qemu. Windows 3.1 Standard mode? (Delete / Rename KRNL386.EXE) DF > > El dom, 15-04-2007 a las 14:46 +0100, Nigel Horne escribió: > > Let me approach this in

Re: [Qemu-devel] 16-bit (and 8-bit) emulation

2007-04-15 Thread Natalia Portillo
Yes but... Currently no protected mode 286 guest OS runs under qemu. El dom, 15-04-2007 a las 14:46 +0100, Nigel Horne escribió: > Let me approach this in a different way in the hope that I'll get an answer > to my > question: will Qemu run a 286 guest O/S? > > -Nige

Re: [Qemu-devel] 16-bit (and 8-bit) emulation

2007-04-15 Thread Nigel Horne
Paul Brook wrote: On Sunday 15 April 2007 14:46, Nigel Horne wrote: Let me approach this in a different way in the hope that I'll get an answer to my question: will Qemu run a 286 guest O/S? Yes. Good. Followup question, if the guest O/S is multi-architecture, will it run in 386 mode (which

Re: [Qemu-devel] 16-bit (and 8-bit) emulation

2007-04-15 Thread Paul Brook
On Sunday 15 April 2007 14:46, Nigel Horne wrote: > Let me approach this in a different way in the hope that I'll get an answer > to my question: will Qemu run a 286 guest O/S? Yes. Paul

Re: [Qemu-devel] 16-bit (and 8-bit) emulation

2007-04-15 Thread Nigel Horne
Let me approach this in a different way in the hope that I'll get an answer to my question: will Qemu run a 286 guest O/S? -Nige begin:vcard fn:Nigel Horne n:Horne;Nigel org:NJH Music email;internet:[EMAIL PROTECTED] tel;fax:+44 870 705 9334 note:Skype: nigelhorne x-mozilla-html:FALSE version:2.

Re: [Qemu-devel] 16-bit (and 8-bit) emulation

2007-04-15 Thread Paul Brook
> > My point is that pretty much anything that runs on a 286 should also run > > on any subsequent x86 processor. If you want to test 16-bit x86 > > software/systems you don't need an actual 286. A 386 is just as good for > > almost all purposes. > > How does that address my issue? You wanted a 28

Re: [Qemu-devel] 16-bit (and 8-bit) emulation

2007-04-15 Thread Andreas Schwab
Nigel Horne <[EMAIL PROTECTED]> writes: > Andreas Schwab wrote: >> Nigel Horne <[EMAIL PROTECTED]> writes: >> >>> I can't remember now what sizeof(int) and sizeof(char *) were on m68k >>> machines. >> >> It depends. Try -mshort. > > That's not much help, I'm sorry to say, because you need an m68

Re: [Qemu-devel] 16-bit (and 8-bit) emulation

2007-04-15 Thread Nigel Horne
Paul Brook wrote: Modern x86 are backwards compatible[*], so you should be able to do that anyway. Care to share with us how I do that? Is it an option to gcc? gcc does not support 16-bit mode. My point is that pretty much anything that runs on a 286 should also run on any subsequent x86 pro

Re: [Qemu-devel] 16-bit (and 8-bit) emulation

2007-04-15 Thread Paul Brook
> > Modern x86 are backwards compatible[*], so you should be able to do that > > anyway. > > Care to share with us how I do that? Is it an option to gcc? gcc does not support 16-bit mode. My point is that pretty much anything that runs on a 286 should also run on any subsequent x86 processor. If

Re: [Qemu-devel] 16-bit (and 8-bit) emulation

2007-04-15 Thread Nigel Horne
Andreas Schwab wrote: Nigel Horne <[EMAIL PROTECTED]> writes: I can't remember now what sizeof(int) and sizeof(char *) were on m68k machines. It depends. Try -mshort. That's not much help, I'm sorry to say, because you need an m68k machine to use it on, and there's no qemu-system-m68k, onl

Re: [Qemu-devel] 16-bit (and 8-bit) emulation

2007-04-15 Thread Nigel Horne
Paul Brook wrote: On Sunday 15 April 2007 13:08, Nigel Horne wrote: Stuart Brady wrote: On Sun, Apr 15, 2007 at 11:08:56AM +0100, Nigel Horne wrote: Can qemu emulate 16-bit machines (286?)? None that I'm aware of. Is there any particular need for 286 emulation? To test my code on machines w

Re: [Qemu-devel] 16-bit (and 8-bit) emulation

2007-04-15 Thread Andreas Schwab
Nigel Horne <[EMAIL PROTECTED]> writes: > I can't remember now what sizeof(int) and sizeof(char *) were on m68k > machines. It depends. Try -mshort. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint

Re: [Qemu-devel] 16-bit (and 8-bit) emulation

2007-04-15 Thread Paul Brook
On Sunday 15 April 2007 13:08, Nigel Horne wrote: > Stuart Brady wrote: > > On Sun, Apr 15, 2007 at 11:08:56AM +0100, Nigel Horne wrote: > >> Can qemu emulate 16-bit machines (286?)? > > > > None that I'm aware of. Is there any particular need for 286 emulation? > > To test my code on machines whe

Re: [Qemu-devel] 16-bit (and 8-bit) emulation

2007-04-15 Thread Nigel Horne
Stuart Brady wrote: On Sun, Apr 15, 2007 at 11:08:56AM +0100, Nigel Horne wrote: Can qemu emulate 16-bit machines (286?)? None that I'm aware of. Is there any particular need for 286 emulation? To test my code on machines where sizeof(int) == sizeof(short), and sizeof(int) != sizeof(long).

Re: [Qemu-devel] 16-bit (and 8-bit) emulation

2007-04-15 Thread Paul Brook
On Sunday 15 April 2007 12:33, Stuart Brady wrote: > On Sun, Apr 15, 2007 at 11:08:56AM +0100, Nigel Horne wrote: > > Can qemu emulate 16-bit machines (286?)? > > None that I'm aware of. Is there any particular need for 286 emulation? > OTOH, it might be interesting to see some m68k system emulati

[Qemu-devel] 16-bit (and 8-bit) emulation

2007-04-15 Thread Stuart Brady
On Sun, Apr 15, 2007 at 11:08:56AM +0100, Nigel Horne wrote: > Can qemu emulate 16-bit machines (286?)? None that I'm aware of. Is there any particular need for 286 emulation? OTOH, it might be interesting to see some m68k system emulation. I've been working on an 8-bit machine, with some succes