QEmu on IRIX, bye bye softwindows 95.

IRIX and IRIX software discussion including open source and commerical offerings.
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
User avatar
dexter1
Moderator
Moderator
Posts: 2584
Joined: Thu Feb 20, 2003 6:57 am
Location: Zoetermeer, The Netherlands

Re: QEMU on IRIX

Unread postby dexter1 » Sun Jan 02, 2005 7:58 am

ohw020571 wrote:Hello,
I just compiled qemu 0.6.1 with the appropriate patch set applied on an R10k Indigo2 with IRIX 6.5.21. Compilation works pretty fine, there are just two things to remember:
1. It is meant to be compiled with gmake, the IRIX make will complain about missing separators.
2. If configure lists the cpu as unknown, You have to edit the configure script: It invokes uname -m; if the output is "IP27" it is translated to "mips", but other platforms e.g. IP28 are ignored. You could change "uname -m" to "uname -p" which gives "mips" directly or change IP27 to whatever-You-have in the list. The linux test image provided on the QEMU homepage works, but this one is non-graphical.

I just compiled qemu myself using gcc 3.4 from nekoware on my R10K Indigo2 IRIX 6.5.22m. Devtools are from MIPSPro 7.4.2m, of which the cc compiler qemu does not compile against, BTW. Unfortunately, my gcc version coredumps.
Could you tell us exactly what gcc version and environment you use?
Also, gcc 3.4 severly bombs on op.c I get shit like:

Code: Select all

as: Error: /var/tmp//ccLg2RXn.s, line 10573: identifer expected
      .globl %lo(__op_label0.0)($2)
... and a few dozen more of those lines
I had to get rid of -mno-abicalls and -O2 but i fear this will introduce the coredump.
Also there are two IRIX patches floating about, the one in the mailinglist, and the one on the web page. Looks like the latter is a better one...

User avatar
mia
Posts: 1048
Joined: Wed Feb 19, 2003 1:54 pm

Re: QEMU on IRIX

Unread postby mia » Sun Jan 02, 2005 8:05 am

dexter1 wrote:
ohw020571 wrote:Hello,
I just compiled qemu 0.6.1 with the appropriate patch set applied on an R10k Indigo2 with IRIX 6.5.21. Compilation works pretty fine, there are just two things to remember:
1. It is meant to be compiled with gmake, the IRIX make will complain about missing separators.
2. If configure lists the cpu as unknown, You have to edit the configure script: It invokes uname -m; if the output is "IP27" it is translated to "mips", but other platforms e.g. IP28 are ignored. You could change "uname -m" to "uname -p" which gives "mips" directly or change IP27 to whatever-You-have in the list. The linux test image provided on the QEMU homepage works, but this one is non-graphical.

I just compiled qemu myself using gcc 3.4 from nekoware on my R10K Indigo2 IRIX 6.5.22m. Devtools are from MIPSPro 7.4.2m, of which the cc compiler qemu does not compile against, BTW. Unfortunately, my gcc version coredumps.
Could you tell us exactly what gcc version and environment you use?
Also, gcc 3.4 severly bombs on op.c I get shit like:

Code: Select all

as: Error: /var/tmp//ccLg2RXn.s, line 10573: identifer expected
      .globl %lo(__op_label0.0)($2)
... and a few dozen more of those lines
I had to get rid of -mno-abicalls and -O2 but i fear this will introduce the coredump.
Also there are two IRIX patches floating about, the one in the mailinglist, and the one on the web page. Looks like the latter is a better one...


jason@deimos:~/ > gcc -v
Reading specs from /usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.3/specs
Configured with: ../configure --prefix=/usr/freeware --enable-version-specific-runtime-libs --disable-shared --enable-threads --enable-haifa --enable-libgcj --disable-c-mbchar
Thread model: single
gcc version 3.3
jason@deimos:~/ > cc -v
MIPSpro Compilers: Version 7.4.2m
jason@deimos:~/ > uname -R
6.5 6.5.25m

Installed windows, linux etc. without any problems with Qemu/IRIX. Gcc is from freeware.sgi.com.

jason@deimos:~/qemu-0.6.1/i386-softmmu/ > ldd qemu
libm.so => /usr/lib32/libm.so
libz.so => /usr/freeware/lib32/libz.so
libSDL-1.2.so.1 => /usr/freeware/lib32/libSDL-1.2.so.1
libpthread.so => /usr/lib32/libpthread.so
libc.so.1 => /usr/lib32/libc.so.1
libdl.so => /usr/lib32/libdl.so
libaudio.so => /usr/lib32/libaudio.so
libnas.so.1 => /usr/freeware/lib32/libnas.so.1
libXt.so => /usr/lib32/libXt.so
libX11.so.1 => /usr/lib32/libX11.so.1
libXext.so => /usr/lib32/libXext.so
libaa.so.2 => /usr/freeware/lib32/libaa.so.2
libgen.so => /usr/lib32/libgen.so delay-load
libcurses.so => /usr/lib32/libcurses.so

User avatar
dexter1
Moderator
Moderator
Posts: 2584
Joined: Thu Feb 20, 2003 6:57 am
Location: Zoetermeer, The Netherlands

Unread postby dexter1 » Mon Jan 03, 2005 1:02 am

gmake is a well known trick to make compilation work for many neko packages so i kinda guessed that one already. The crucial thing is the compilation with gcc 3.3 because apparently the assembly and stack alignment are critically intertwined with the compiler choice. The guy only had an Indy + gcc + gdb to play with and the port took him 60 hours. So naturally one cannot expect it to work with mipspro "yet"

I got qemu to run yesterday on my I2 together with the neko_sdl package, but only limited output on the graphic VGA screen, it tries to boot the kernel, then hangs... Will pull it through cvd one of these days. Boots Linux fine btw :)

NB, the program looks to be quite ok in terms of speed!

User avatar
squeen
Moderator
Moderator
Posts: 2932
Joined: Fri May 09, 2003 6:10 am
Location: Maryland, USA

Unread postby squeen » Mon Jan 03, 2005 3:04 am

Any chance of a gcc'd neko package? anyone?

User avatar
Nihilus
Posts: 310
Joined: Sat Dec 18, 2004 8:21 am
Location: Stockholm, Sweden
Contact:

Unread postby Nihilus » Wed Jan 05, 2005 3:22 pm

I guess someone should optimize the code for the R10K-processor, that'd be nifty. Support for MIPS as target host would be so freakin cool! 8) Might be my chance to learn mips asm.

User avatar
mia
Posts: 1048
Joined: Wed Feb 19, 2003 1:54 pm

Unread postby mia » Wed Jan 05, 2005 3:29 pm

Nihilus wrote:I guess someone should optimize the code for the R10K-processor, that'd be nifty.


Some stuff needs fixed before, like:

- networking
- gcc-2.95.1 does not produce a correct op.o
- USE_DIRECT_JUMP. This probably needs to be fixed, but it could be a CONSIDERABLE speedup.
- slirp does not work yet.
- sound

and probably some other things...

jonnymorris
Posts: 38
Joined: Thu Dec 15, 2005 7:13 am

Unread postby jonnymorris » Thu Dec 15, 2005 7:23 am

[quote="squeen"]
I have an old laptop running Windoze connected via rdesktop for such conversions. I'd prefer an IRIX/MIPS solution instead.[/quote]

Here here. I'm currently experimenting with Qemu on my 1GHz eMac, it runs Windows98 pretty well, if a bit slow. No chance on my 200MHz O2, however I'm hoping to get some sort of dual Octane/2 soon so with luck I should be able to at least put my old PC in the cupboard (I may still need it for the serial ports which is quite annoying)

Between my Mac and SGI platforms (both running Qemu) I should be able to run any software I want!

I wondered if it was possible to create a network pipe from the emulated software to the host computer - I haven't looked into the networking side of things yet, but if the emulated hardware has its own network address and Qemu is able to see the host computer's network address, surely it should be possible to run up Samba or Sharity from within the emulator in order to share a folder within Windows, that would make transfering files so easy (in theory).

Anyway, in the mean-time I hope Qemu development for IRIX continues and I look forward to joining the Qemu-IRIX community in ernest soon!

User avatar
Trippynet
Donor
Donor
Posts: 682
Joined: Thu Aug 15, 2013 6:22 am
Location: Aberdeen, Scotland, UK

Re: QEmu on IRIX, bye bye softwindows 95.

Unread postby Trippynet » Sat Jan 14, 2017 8:29 am

Has anyone tried any later versions of QEMU on IRIX? Failing that, I'd love to get hold of QEMU 0.6.1 to try compiling it. I've managed to get hold of the IRIX patch for it, but can't find the source any more for it.

I did try the latest QEMU, but it seems to be very Linuxified. After patching "configure" to detect mips properly, it then asked me to install glibc and the Linux kernel headers - which isn't exactly promising!
Systems in use:
:Indigo2IMP: - Nitrogen: R10000 195MHz CPU, 384MB RAM, SolidIMPACT Graphics, 36GB 15k HDD & 300GB 10k HDD, 100Mb/s NIC, New/quiet fans, IRIX 6.5.22
:Fuel: - Lithium: R14000 600MHz CPU, 4GB RAM, V10 Graphics, 72GB 15k HDD & 300GB 10k HDD, 1Gb/s NIC, New/quiet fans, IRIX 6.5.30
Other system in storage: :O2: R5000 200MHz, 224MB RAM, 72GB 15k HDD, PSU fan mod, IRIX 6.5.30

User avatar
mia
Posts: 1048
Joined: Wed Feb 19, 2003 1:54 pm

Re: QEmu on IRIX, bye bye softwindows 95.

Unread postby mia » Sat Jan 14, 2017 8:36 am

notably there was never a networking option (using Qemu+patch), that's really a dealbreaker, I think the best option is probably a remote qemu with vnc graphics.
:Onyx2:

User avatar
dexter1
Moderator
Moderator
Posts: 2584
Joined: Thu Feb 20, 2003 6:57 am
Location: Zoetermeer, The Netherlands

Re: QEmu on IRIX, bye bye softwindows 95.

Unread postby dexter1 » Sat Jan 14, 2017 11:22 am

Trippynet wrote:Has anyone tried any later versions of QEMU on IRIX? Failing that, I'd love to get hold of QEMU 0.6.1 to try compiling it. I've managed to get hold of the IRIX patch for it, but can't find the source any more for it.

http://pkgs.fedoraproject.org/repo/pkgs ... 6.1.tar.gz

seems to be a valid file. No idea if it compiles with gcc-4.7 but give it a shot.
:Crimson: :PI: :Indigo: :O2: :Indy: :Indigo2: :Indigo2IMP: :O200: :O2000: :Onyx2:

User avatar
Trippynet
Donor
Donor
Posts: 682
Joined: Thu Aug 15, 2013 6:22 am
Location: Aberdeen, Scotland, UK

Re: QEmu on IRIX, bye bye softwindows 95.

Unread postby Trippynet » Sun Jan 15, 2017 3:18 am

Thanks! I'll grab that and give it a shot. Interesting to see how much it's changed between then and now. That file is 980kB, the latest version's source is 27MB...
Systems in use:
:Indigo2IMP: - Nitrogen: R10000 195MHz CPU, 384MB RAM, SolidIMPACT Graphics, 36GB 15k HDD & 300GB 10k HDD, 100Mb/s NIC, New/quiet fans, IRIX 6.5.22
:Fuel: - Lithium: R14000 600MHz CPU, 4GB RAM, V10 Graphics, 72GB 15k HDD & 300GB 10k HDD, 1Gb/s NIC, New/quiet fans, IRIX 6.5.30
Other system in storage: :O2: R5000 200MHz, 224MB RAM, 72GB 15k HDD, PSU fan mod, IRIX 6.5.30

User avatar
Trippynet
Donor
Donor
Posts: 682
Joined: Thu Aug 15, 2013 6:22 am
Location: Aberdeen, Scotland, UK

Re: QEmu on IRIX, bye bye softwindows 95.

Unread postby Trippynet » Sun Jan 15, 2017 5:43 am

dexter1 wrote:No idea if it compiles with gcc-4.7 but give it a shot.


Hmm, apparently not. I applied the patch OK and set it going. Seemed to be running OK for a while until it got to "exec.c" upon which it threw a wall full of Assembler messages, including a number of "Error: Opcode not supported on this processor: mips2 (mips2) 'movn $16,$2,$3'" messages.

Sod.
Systems in use:
:Indigo2IMP: - Nitrogen: R10000 195MHz CPU, 384MB RAM, SolidIMPACT Graphics, 36GB 15k HDD & 300GB 10k HDD, 100Mb/s NIC, New/quiet fans, IRIX 6.5.22
:Fuel: - Lithium: R14000 600MHz CPU, 4GB RAM, V10 Graphics, 72GB 15k HDD & 300GB 10k HDD, 1Gb/s NIC, New/quiet fans, IRIX 6.5.30
Other system in storage: :O2: R5000 200MHz, 224MB RAM, 72GB 15k HDD, PSU fan mod, IRIX 6.5.30

User avatar
ClassicHasClass
Donor
Donor
Posts: 1908
Joined: Wed Jul 25, 2012 7:12 pm
Location: Sunny So Cal
Contact:

Re: QEmu on IRIX, bye bye softwindows 95.

Unread postby ClassicHasClass » Wed Feb 22, 2017 6:41 am

I hacked qemu 2.2.1 to build and run on Mac OS X 10.4. Yes, that's Chromium 53 "running" on a Tiger Power Mac:

http://www.floodgap.com/iv/3239

It's slow and the blue tint is due to an endian issue with the display emulation, but hey, it's a thing. Later versions of qemu won't work because they require thread-local storage; that wasn't supported by the OS X linker nor apparently by the OS until 10.7. I can't imagine IRIX is any different.

That said, I built it with gcc-4.2 and the only hacks I needed was to reenable certain OS features, so maybe the problem is gcc-4.7. It would be better to get something post-1.0 running because at least that has TCG, which is substantially faster than the pre-TCG interpreter 0.6 would be using. There is TCG support for MIPS in this version though I haven't looked at how suitable it is for SGI.
smit happens.

:Fuel: bigred, 900MHz R16K, 4GB RAM, V12 DCD, 6.5.30
:Indy: indy, 150MHz R4400SC, 256MB RAM, XL24, 6.5.10
:Indigo2IMP: purplehaze, 175MHz R10000, Solid IMPACT
probably posted from Image bruce, Quad 2.5GHz PowerPC 970MP, 16GB RAM, Mac OS X 10.4.11
plus IBM POWER6 p520 * Apple Network Server 500 * RDI PrecisionBook * BeBox * Solbourne S3000 * Commodore 128 * many more...

User avatar
Dodoid
Posts: 424
Joined: Mon Jul 04, 2016 1:36 pm
Location: Ottawa, Canada
Contact:

Re: QEmu on IRIX, bye bye softwindows 95.

Unread postby Dodoid » Wed Feb 22, 2017 8:15 am

Slowness of individual CPUs is still going to be the killer here...

Unless we can work out how to multithread the emulation tasks so that multiple MIPS CPUs can be used to emulate one fast x86 one, I don't see any reason it would perform better on an Tezro/Origin 3000 than on a Fuel.

Not an expert, of course.
:Fuel: :Octane: :Octane: :Octane: :O2: :Indigo2: :Indy: :Indy:

User avatar
ClassicHasClass
Donor
Donor
Posts: 1908
Joined: Wed Jul 25, 2012 7:12 pm
Location: Sunny So Cal
Contact:

Re: QEmu on IRIX, bye bye softwindows 95.

Unread postby ClassicHasClass » Wed Feb 22, 2017 1:49 pm

The other hardware components could be scheduled on other CPUs, but the core execution component would have a high risk of sequential problems. There is some work on multithreaded TCG here: http://wiki.qemu-project.org/Features/tcg-multithread

However, these changes would be far too late for IRIX because they probably assume thread-specific features that our older OSes don't support, and it's really for the case of emulating a multi-core system, not emulating a single CPU system with the CPU emulation spread over multiple cores.
smit happens.

:Fuel: bigred, 900MHz R16K, 4GB RAM, V12 DCD, 6.5.30
:Indy: indy, 150MHz R4400SC, 256MB RAM, XL24, 6.5.10
:Indigo2IMP: purplehaze, 175MHz R10000, Solid IMPACT
probably posted from Image bruce, Quad 2.5GHz PowerPC 970MP, 16GB RAM, Mac OS X 10.4.11
plus IBM POWER6 p520 * Apple Network Server 500 * RDI PrecisionBook * BeBox * Solbourne S3000 * Commodore 128 * many more...


Return to “IRIX and Software”

Who is online

Users browsing this forum: No registered users and 1 guest