simias / rustation

Playstation emulator in the Rust programing language
Other
552 stars 21 forks source link

Potential to copy a recompiler from PCSX2's IOP. #26

Open ADormant opened 8 years ago

ADormant commented 8 years ago

PS2 IOP is PS1 CPU with GTE and MDEC. Right now pcsx2 devs are fixing IOP emulation in PCSX2 based on hardware tests and planning to add a recompiler. Perhaps you could copy that recompiler from PCSX2 to rustation in the future? Also check hardware tests.

https://github.com/PCSX2/pcsx2/commit/135cdfca469862d9495492a54964db0a6cd991fa

simias commented 8 years ago

That's pretty cool. Thanks for the link. They want to dynarec the IOP?

ADormant commented 8 years ago

They want to dynarec the IOP?

Yes not sure if it already works.

pcercuei commented 7 years ago

I'm working on a dynarec: https://github.com/pcercuei/lightrec It uses GNU Lightning as the low-level assembler, so it already runs on x86, x86_64, ARM, MIPS and probably others. I did plug it into PCSX to test it, and it boots the BIOS and most of my games. Would it be useful for you guys?

simias commented 7 years ago

Hey @pcercuei, thanks for the heads up.

I think at the moment it wouldn't make a lot of sense to integrate a dynarec in rustation (I need to fix other things first). However https://github.com/libretro/beetle-psx-libretro would probably be interested (it's libretro's mednafen PSX fork). I think they already had somebody working on a dynarec but there hasn't been an update in a while now so maybe it's dead.