Sponsored Links

Sponsored Links

PS3 SPU Emulation Pre-Alpha Module, Allows x86 PCs to Emulate SPU


Sponsored Links
120w ago - TeaM_AC1D in the wild, from one of our newest and highly skilled members KDSBest we have something nice for the scene - a PS3 SPU emulation pre-alpha module that allows x86 PCs to emulate the SPU.

Download: [Register or Login to view links]

Hi Community,

I wanted to contribute to the scene , so I coded a tool that might help the community our members and fellow dev's. This Tool is intended for dev's so please be careful if you don't know what you do. I will not be held responsible for any harm.

My tool is a emulator for PS3 modules (e.g metldr), it is in pre alpha stage but I thought, it would be great to get some community feedback.

How to use:

Not all SPU Commands are implemented yet, but it is easily extendable and I will make it support DMA, all SPU Commands and SPU Mailbox soon.

First open a .kds file. Check out the metldr.kds to see an example. The rest is like a normal debugger. If you put dumps of your reversed functions in the KnownFunctions folder, it will detect it and mark that function for you.

Just for example Mark the whole cellSpuAesDecryptCbcCfb128 function in HexView in IDA -> Right Click -> Save to File. Name the File "cellSpuAesDecryptCbcCfb128" without extension and copy it to the KnownFunctions Directory of the Emulator. Now all similar functions get automatic detected!

"Step" Executes next command, "Run" runs till breakpoint (Breakpoints are not implemented yet). Debug SPU Code in Windows.

Any questions? Just get back to me at twitter

Stay tuned

KDSBest
twitter.com/#!/KDSBest

PS: Thx for MK and cfwprophet (Team Acid) and of course to fail0verflow for anergistic, which helps a lot with it and even uses some functions of them.




Stay tuned for more PS3 Hacks and PS3 CFW news, follow us on Twitter and be sure to drop by the PS3 Hacks and PS3 Custom Firmware Forums for the latest PlayStation 3 scene updates and homebrew releases!

Comments 22 Comments - Go to Forum Thread »

• Please Register at PS3News.com or Login to make comments on Site News articles. Thanks!

PS3 News's Avatar
#17 - PS3 News - 118w ago
Shortly following the Alpha 2 Module release, today KDSBest has updated their PS3 / PC SPU emulation project which allows your x86 machine to emulate the PlayStation 3 SPU to Beta status.

Download: [Register or Login to view links]

To quote: Let's call it beta (SPU emulation). Tested with my own elf a lot commands if they work properly. Disabled buttons depending on state.

And last but not least, if you press run a new thread is spawned. Now you are able to press pause and it stops the run ofc. The performance get a super boost with the threading.

Project Update: alpha2 - pre alpha so it is not in pre alpha stage anymore. It detects code modifications on the fly too. The new feature list is not complete that's my fault I guess.

Thanks for the news update. I need some infos from some reversers to create the next stunning feature:

Crypto dumping... dumps all crypto calls... Let's call it function parameter dumping cause it will work for everything and will implement a callback on known functions which will make dumping at certain calls possible.

I try to implement this and GET/PUT DMA commands this weekend. I think I can't finish it this weekend, but this will be the beta stage. V0.9 should then just implement the rest of the commands that anergistic implements.

After that it is unknown what I do and so on. Since then my reversing starts to get more focus.

Update: From mr_wicked: I was trying to run an SPU module in anergistic with no success. In IBM systemsim (in combination with libspe2) my code ran just fine..

Finding a broken instruction in anergistic is like finding a needle in a haystack. So I ended up throwing IBM systemsim in IDA and exported all SPU instructions to .asm. After writing a small emulator around these instructions I was able to find two nasty errors. One in "andhi" and one in the "cgx" instruction. Here are the corrected Anergistic instructions:

My application also needed rotqbybi and rotqbi so I implemented those as well:

Although trivial to fix it was really nasty to find these. I couldn't find a repository with active development, so I'm posting it here.

More PlayStation 3 News...

PS3 News's Avatar
#16 - PS3 News - 118w ago
Following up on the initial release, today KDSBest has updated their PS3 / PC SPU emulation project to Alpha 2 which allows your x86 machine to emulate the PlayStation 3 SPU.

Download: [Register or Login to view links]

To quote: SPU Emulation Alpha2 has been released: mBox implemented and MFC prepared, bugfixes, breakpoints implemented and all commands for metldr as far as KDSBest knows.

Hi Community,

I wanted to contribute to the scene, so I coded a tool that might help the community our members and fellow dev's. This Tool is intended for dev's so please be careful if you don't know what you do. I will not be held responsible for any harm.

My tool is a emulator for PS3 modules (e.g metldr), it is in pre alpha stage but I thought, it would be great to get some community feedback.

How to use:

Not all SPU Commands are implemented yet, but it is easily extendable and I will make it support DMA, all SPU Commands and SPU Mailbox soon.

First open a .kds file. Check out the metldr.kds to see an example. The rest is like a normal debugger. If you put dumps of your reversed functions in the KnownFunctions folder, it will detect it and mark that function for you.

Just for example Mark the whole cellSpuAesDecryptCbcCfb128 function in HexView in IDA -> Right Click -> Save to File
Name the File "cellSpuAesDecryptCbcCfb128" without extension and copy it to the KnownFunctions Directory of the Emulator. Now all similar functions get automatic detected!

"Step" Executes next command, "Run" runs till breakpoint (Breakpoints are not implemented yet).
Debug SPU Code in Windows.

Any questions?

Just get back to me at twitter

Stay tuned

KDSBest
twitter.com/#!/KDSBest

PS: Thx for MK and cfwprophet (Team acid) and of course to fail0verflow for anergistic, which helps a lot with it and even uses some functions of them.

More PlayStation 3 News...

KDSBest's Avatar
#15 - KDSBest - 118w ago
It is not for game emulation and it will never emulate the ppc. If you want that go to code.google.com/p/rpcs3/ , their work is not done and nearly nothing work, but they are the guys that write an emu for games and so on. This is just for reversing, so you don't have only a static analysis.

cfwprophet's Avatar
#14 - cfwprophet - 119w ago
Naaaa np i knowed what you meant it was more a joke and a informing post for others who don't know

Exactly it emulates PS3 code running in the SPU sub Core of the CellBE of PS3 ON PC x86 ak 32bit systems. But also working on 64bit systems.

Ni72ous's Avatar
#13 - Ni72ous - 119w ago
Sorry mate did not come out right, what i meant was this was i don't think it was intended as a whole system emulator where it would be possible to play games.

Sponsored Links

Sponsored Links
Sponsored Links

Sponsored Links







Affiliates - Contact Us - PS3 Downloads - Privacy Statement - Site Rules - Top - © 2014 PlayStation 3 News