forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

psp-gcc vs PSPE

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Tue Jun 21, 2005 9:41 am    Post subject: psp-gcc vs PSPE Reply with quote

Just a note:

The pgp-gcc toolchain (20050619) generates seb/seh in the output, due to this portion of gcc-4.0.0.patch:
Code:

@@ -987,6 +993,7 @@
 /* ISA includes the MIPS32r2 seb and seh instructions.  */
 #define ISA_HAS_SEB_SEH         (!TARGET_MIPS16                        \
                                  && (ISA_MIPS32R2                      \
+                                     || TARGET_ALLEGREX                \
                                      ))

These opcodes do work on the PSP, but crash PSPE (as of 0.9b). Hopefully a more complete emulator will be available at some point.
Back to top
View user's profile Send private message
Guest






PostPosted: Tue Jun 21, 2005 11:17 am    Post subject: Reply with quote

Did you look at how easy it might be to add them to PSPE ?
Back to top
jboldiga



Joined: 20 Jun 2005
Posts: 27

PostPosted: Tue Jun 21, 2005 11:22 am    Post subject: Reply with quote

Is there source available for PSPE?
Back to top
View user's profile Send private message
sq377



Joined: 11 Apr 2005
Posts: 87

PostPosted: Tue Jun 21, 2005 11:26 am    Post subject: Reply with quote

if source was available, someone would have ported it to linux by now.
Back to top
View user's profile Send private message AIM Address MSN Messenger
Guest






PostPosted: Tue Jun 21, 2005 11:38 am    Post subject: Reply with quote

There is no source ? Its Windows only ? Screw that.

Rinco mentioned "gxemul" in another thread and is using it on Mac. It comes with source. I downloaded it last night to eventually start using. Undoubtedly it works on many platforms.

Is it usable for your purposes ? Here is the reference thread....

http://forums.ps2dev.org/viewtopic.php?t=2147&highlight=gxemul

EDIT: Found at this website: http://gavare.se/gxemul/
Back to top
jboldiga



Joined: 20 Jun 2005
Posts: 27

PostPosted: Tue Jun 21, 2005 2:02 pm    Post subject: Reply with quote

thanks gorim ;)
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Tue Jun 21, 2005 7:00 pm    Post subject: Reply with quote

gorim wrote:
There is no source ? Its Windows only ? Screw that.


Yeah.

gorim wrote:
Rinco mentioned "gxemul" in another thread and is using it on Mac.


gxemul won't do any of the PSP syscalls out of the box, of course, but that could be added. Not sure if it handles seb/seh; source doesn't appear to reference those opcodes. Maybe someday I'll work on a psp machine definition for gxemul; for now I'll probably just stick with testing on a real PSP.
Back to top
View user's profile Send private message
jboldiga



Joined: 20 Jun 2005
Posts: 27

PostPosted: Wed Jun 22, 2005 2:10 am    Post subject: Reply with quote

its just too timely to keep testing on psp, especially with no debug support...kinda like throwing a dart at a dartboard hoping things will just workout.
Back to top
View user's profile Send private message
MrHTFord



Joined: 10 Feb 2004
Posts: 35
Location: England

PostPosted: Wed Jun 22, 2005 2:52 am    Post subject: Reply with quote

If that's how you think of programming then you'd be better off taking up professional darts instead.
Back to top
View user's profile Send private message Send e-mail
jason



Joined: 14 Apr 2005
Posts: 28

PostPosted: Fri Jun 24, 2005 10:28 am    Post subject: Reply with quote

http://gavare.se/gxemul/screenshots/20050624-playstation-portable.png
http://gavare.se/gxemul/diary.html

Have Fun.
Back to top
View user's profile Send private message
jboldiga



Joined: 20 Jun 2005
Posts: 27

PostPosted: Fri Jun 24, 2005 11:26 am    Post subject: Reply with quote

Excellent! :)
Back to top
View user's profile Send private message
PacManFan



Joined: 25 Jun 2005
Posts: 66

PostPosted: Wed Jun 29, 2005 5:00 am    Post subject: No seb seh Reply with quote

Well, I understand that the PSPE will crash if it encounters an seb/seh instruction. I've taken out the define in the gcc 4.0.0 patch to generate the seb/seh, and I'm rebuilding the tool chain now. I'll let everyone know if it works to produce elfs that run flawlessly in the PSPE.

-PMF
Back to top
View user's profile Send private message Send e-mail
Warren



Joined: 24 Jan 2004
Posts: 173
Location: San Diego, CA

PostPosted: Wed Jun 29, 2005 5:50 am    Post subject: Reply with quote

OK we need a sticky or something about PSPE.
PSPE DOES NOT EMULATE A PSP. It emulates a MIPS r4000 CPU which IS NOT the same thing.

This is akin to taking a PC emulator that only emulates an i386 and trying to run i686 code on it, some simple things will work but most anything that's meant for the real system will crash it.

In short, stop hacking apart the toolchain to try and get the POS PSPE to work with your code, if you really want an emulator for the PSP get some people together, grab gxemul sourcecode and properly implement the main Allegrex PSP CPU core based on the binutils patches in the toolchain.

DO NOT POST ANYMORE ABOUT PSPE NOT WORKING. CODE ON A REAL PSP OR MAKE A PROPER ALLEGREX EMU.
Back to top
View user's profile Send private message
PacManFan



Joined: 25 Jun 2005
Posts: 66

PostPosted: Wed Jun 29, 2005 6:15 am    Post subject: Still building Reply with quote

The tool chain is still building at this point, but I see no reason why I shouldn't disable the SEB/SEH instructions. My perspective is that if I can get compiled code to run on the PSPE, it WILL run on the PSP. Once I've gone through my lengthy compile/test/debug cycle, I'll rebuild my toolchain and put the proper one back in place.

To take from your example, 386 code will run on a 686, but not the other way around. If I can compile/test/debug on the PSPE, this will save a vast amount of time, Then I can switch compilers and turn on optimizations.

To each thier own I say.

-PMF
Back to top
View user's profile Send private message Send e-mail
ector



Joined: 12 May 2005
Posts: 195

PostPosted: Wed Jun 29, 2005 6:19 am    Post subject: Reply with quote

If you really want to, but please don't spread your broken compiler.

This may be the final drop that causes me to polish up and release my emulator, it's slower than PSPE but has tons more debugging capabilities and supports more instructions, but right now it's a little too iffy to release.
Back to top
View user's profile Send private message
Agoln



Joined: 08 Jun 2005
Posts: 326
Location: Fort Wayne, IN

PostPosted: Wed Jun 29, 2005 6:22 am    Post subject: Reply with quote

ector wrote:
If you really want to, but please don't spread your broken compiler.

This may be the final drop that causes me to polish up and release my emulator, it's slower than PSPE but has tons more debugging capabilities and supports more instructions, but right now it's a little too iffy to release.


Run on linux?
Back to top
View user's profile Send private message AIM Address
Savoury SnaX



Joined: 22 Jun 2005
Posts: 3

PostPosted: Wed Jun 29, 2005 6:26 am    Post subject: Reply with quote

How about an svn repository for the source then? More hands would make the project stabler (less iffy?) faster. And a source version would be much more useful, than a windows/linux or mac only binary.
Back to top
View user's profile Send private message
PacManFan



Joined: 25 Jun 2005
Posts: 66

PostPosted: Wed Jun 29, 2005 6:31 am    Post subject: New PSP emulator? Reply with quote

ector,

By all means, release your EMU soon. The only reason i'm hacking the toolchain is to have a faster dev cycle. If you release your source, we can all work on it and get something good and stable for the community fast.

BTW, my tool chain is almost done building, I'll report my results soon.

-PMF
Back to top
View user's profile Send private message Send e-mail
ector



Joined: 12 May 2005
Posts: 195

PostPosted: Wed Jun 29, 2005 6:41 am    Post subject: Reply with quote

Yeah I'm thinking about a source release.

The sweet debugger GUI is all Win32 but the core is reasonably abstracted out and shouldn't be a very difficult port for anyone so inclined. I'd expect it to work just great on Wine though as I'm not using anything strange.

I need to figure out how to compile ELFIO as a dynamic library first though, as I'm not sure yet I want to release under LGPL.
Back to top
View user's profile Send private message
PacManFan



Joined: 25 Jun 2005
Posts: 66

PostPosted: Wed Jun 29, 2005 6:47 am    Post subject: new gcc without seb/seh Reply with quote

OK it's compiled, I recompiled my pspquake source under it , and it's now running (somewhat) under the PSPE. When I say somewhat, I mean more than before. Back to debugging for me, hopefully I'll have quake fully working in a day or so..

-PMF out..
Back to top
View user's profile Send private message Send e-mail
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Wed Jun 29, 2005 9:00 am    Post subject: Re: new gcc without seb/seh Reply with quote

PacManFan wrote:
OK it's compiled, I recompiled my pspquake source under it , and it's now running (somewhat) under the PSPE. When I say somewhat, I mean more than before. Back to debugging for me, hopefully I'll have quake fully working in a day or so..

-PMF out..


Instead of recompiling the toolchain you could've just used -march=6000 with your current one.

Know thy tools....
Back to top
View user's profile Send private message
Arwin



Joined: 12 Jul 2005
Posts: 426

PostPosted: Fri Jul 22, 2005 7:07 pm    Post subject: Reply with quote

Is this project dead?
Back to top
View user's profile Send private message
Warren



Joined: 24 Jan 2004
Posts: 173
Location: San Diego, CA

PostPosted: Sun Jul 24, 2005 7:20 am    Post subject: Reply with quote

We can only hope so.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group