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 

TLB question

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



Joined: 08 Feb 2007
Posts: 45

PostPosted: Mon Feb 12, 2007 10:22 pm    Post subject: TLB question Reply with quote

I feel I'm a noob in MIPS again. I'm doing some reading on its instruction set. I'm wondering if we use these instructions, how will the chip act, error 'FEATURE_NOT_AVAILABLE' ?

TLBR Read Indexed TLB Entry
TLBWI Write Indexed TLB Entry
TLBWR Write Random TLB Entry
TLBP Probe TLB for Matching Entry
_________________
guo.bojun@gmail.com
Back to top
View user's profile Send private message
hlide



Joined: 10 Sep 2006
Posts: 750

PostPosted: Tue Feb 13, 2007 5:55 am    Post subject: Re: TLB question Reply with quote

gbj1 wrote:
I feel I'm a noob in MIPS again. I'm doing some reading on its instruction set. I'm wondering if we use these instructions, how will the chip act, error 'FEATURE_NOT_AVAILABLE' ?

TLBR Read Indexed TLB Entry
TLBWI Write Indexed TLB Entry
TLBWR Write Random TLB Entry
TLBP Probe TLB for Matching Entry


First, Allegrex uses a FM MMU (that is a Fixed Mapping Memory Manager Unit) instead of a TLB MMU. Worse, Allegrex doesn't seem to provide a TLB MMU since COP0 registers don't even answer anything when interrogating the TLB-relative registers. I don't try the TLB-relative instructions but i'm quite sure they would raise a Reserved Instruction exception as it would be with trap instructions which are not implemented into Allegrex.

So just forget them.
Back to top
View user's profile Send private message
gbj1



Joined: 08 Feb 2007
Posts: 45

PostPosted: Tue Feb 13, 2007 10:24 am    Post subject: Reply with quote

I have heard a sort of memory management unit called 'MPU' (memory protection unit). Allegrex seems to have such a unit to protect its kernel memory.

Sony devs had their unlimited wisdom guided to choose such a chip on their portable game console.
_________________
guo.bojun@gmail.com
Back to top
View user's profile Send private message
hlide



Joined: 10 Sep 2006
Posts: 750

PostPosted: Tue Feb 13, 2007 4:18 pm    Post subject: Reply with quote

gbj1 wrote:
I have heard a sort of memory management unit called 'MPU' (memory protection unit). Allegrex seems to have such a unit to protect its kernel memory.

Sony devs had their unlimited wisdom guided to choose such a chip on their portable game console.


if you are refering to the ability for protecting the read/write access right to kernel/user code, that is not because of MIPS cpu had this but rather because of a BCU (Bus Control Unit), the registers of which are mapped in memory allegrex (0xBC2000xx if i'm not wrong). You may call it a MPU but it is not its solely function.

I'm not against the fact that Sony drops the TLB management since it would rather slow games down (standard MIPS uses a software TLB management, not a hardware one like ix86).

And Sony never uses the TLB available on PSX for their games too for the same reason.
Back to top
View user's profile Send private message
gbj1



Joined: 08 Feb 2007
Posts: 45

PostPosted: Tue Feb 13, 2007 6:42 pm    Post subject: Reply with quote

It also limits the ability to port other operating system other than their own firmware. They made a nice deal with performance and capability.
_________________
guo.bojun@gmail.com
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