Video: StarCraft Running on the PS3 via Qemu & YDL with Guide!
Using Yellow Dog Linux on the PlayStation 3, efaustus9 used Qemu to emulate Windows 95 on the platform, allowing him to run StarCraft. To quote:
Want to run windows apps on your PS3? Windows runs on about 90% of home computers, consequently most software and games are designed for that OS. Wine is a good option for running windows apps in linux.
However it requires a x86 CPU and thus will not run on the PPC processor found in the ps3. So how do you run windows apps on the ps3? Qemu is how. Qemu runs windows in virtualization. Not the most efficient way to run win apps but it works.
In this video I use Qemu to emulate the relatively resource light Windows 95 in yellow dog linux on the ps3. I also use the fscaler tool to utilize the cells spe's and enlarge the image with out taking a performance hit.
As you can see the classic starcraft is quite playable all from the comfort of my living room. Want to try the same on your PS3? Check out my [Register or Login to view links].
I will presume you already have YDL installed with a working internet connection. If you do not have either or both see my guide above. You will need windows 95 install CD for the method described below. You can use newer versions of windows but it will be detrimental to performance. For installing windows 98SE or better see my guide above.
Freedos will now open in the options provided press 1 to boot the cd. Then select "Install to harddisk using FreeDOS SETUP". Next chose to prepare the harddisk for FreeDos by running XFDisk. In FDisk press enter then select new Partition and press enter until you return to the main options.
Press enter once again select change partition type and make it FAT16 INT13X. Press F3 and select Yes to save partition table. The system will reboot. Once rebooted press 1 to boot the cd and chose option 1 again but this time select option 5 Run Freedos from CDROM (return to command prompt). Now type the following;
The biggest problem with QEMU is that it is actually emulating the x86 CPU (and the rest of the pc hardware also). But what makes things slow is the x86 emulation. To speed things up, QEMU internally translates the x86 code to powerpc code for the cell processor. But this translation is more a kind of advanced interpreter (it just pastes the powerpc-code for the emulated instructions next to each other). A way more faster way of emulation would be a true recompilation, where the resultant powerpc-code would also be optimized for inter-dependencies of the x86-instructions.
Actually IBM did a lot of research in the area of recompilation in the past. If I remember right there was also research done for x86->powerpc translation. I think x86-PC emulation would score on the PS3 if someone builds such an advanced recompilation for the CPU on top of QEMUs (or bochs) PC-hardware emulation.
Just a thought, would be a hell of work... QEMU is great (even if its slow )