L2MMU_CAM registers access via Code Warrior Connection server Shell.

cancel
Showing results for 
Search instead for 
Did you mean: 

L2MMU_CAM registers access via Code Warrior Connection server Shell.

517 Views
saqlainraza
Contributor I

Hi,

 

I am trying to access L2MMU_CAMx registers available on a p4080ds target for MMU configuration using CCS shell. I can access other registers by specifying the register index in "read_reg" command. But I am unable to find any index for this register series.

 

Currently I am using this command to access registers via CCS shell :

disp ccs::in 1 4 0 573 which returns :

mcar=0x00000000

 

Can someone plz tell me the indices for these registers ?

Thanks.

Labels (1)
0 Kudos
7 Replies

86 Views
addiyi
NXP Employee
NXP Employee

Take a look on te500mc.tcl. This can be found in \PA\ccs\bin\.

Adrian

0 Kudos

86 Views
saqlainraza
Contributor I

Hi Adrian,

Sorry, but I am unable to locate L2MMU_CAMx registers in te500mc.tcl

Thanks,Saqlain

0 Kudos

86 Views
addiyi
NXP Employee
NXP Employee

Unfortunately, from ccs you will not be able to have MMU visibility as you can see below in Debugger Shell.

0 Kudos

86 Views
saqlainraza
Contributor I

Ok, can someone please tell me that how can I translate the WTLB command found in Abatron BDI3000 configuration file to an L2MMU_CAM value ?

e.g The BDI config file says this :

;================= setup TLB entries ===================

;

;   +--------+--------+ +--------------------+-+-+-+-----+----+

;   |  TID   |IDX/WAY | |          EPN       |T|I|S|WIMGE|SIZE|

;   +--------+--------+ +--------------------+-+-+-+-----+----+

;       8        8                  20                   1 1 1    5            4

;   A size of 0 selects TLB0. T is TS / I is IPROT / S is SHAREN

;   +----+ +--------------------+----+---+---+--+

;   |ERPN| |          RPN       |USER|UUU|SSS|XX|

;   |    | |                               |ATTR|RWX|RWX|01|

;   +----+ +--------------------+----+---+---+--+

;     4                     20          4           3        3      2

WTLB 1_0x4000008a0x4000001c
0 Kudos

86 Views
lunminliang
NXP Employee
NXP Employee

Hello saqlain raza,

As L2MMU_CAMx is actually TLB1 entry not SPR, it does not has a SPR number or index.

You could use below command from Debugger Shell to read those TLB registers:

displaytlb [TLBSetNumber] ?[printInvalid]?

The argrments:

TLBSetNumber: Indicates a number representing the TLB register set that the user wants to print. 0 is for regPPCTLB0 and 1 is for regPPCTLB1

printInvalid: Determines whether only valid TLB register set entries will get displayed or all entries will get displayed. It is an optional argument. If no value is given to this argument, it takes the value, 0, which means only valid TLB register set entries will be displayed in the output. If a non-zero value is given to this argument, then all the TLB register set entries will get displayed in the output.

To use the displaytlb command from:

Window > Show View > Other > Debug > Debugger Shell > enter command "displaytlb 1":

pastedImage_0.png


Have a great day,
Lunmin

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

86 Views
saqlainraza
Contributor I

Hi,

Thanks for the response. I am getting the following error when I try to issue this command on the CCS shell :

(bin) 79 % displaytlb 1

invalid command name "displaytlb"

Am I missing something ?

0 Kudos

86 Views
lunminliang
NXP Employee
NXP Employee

Hello saqlain raza,

Please use the displaytlb command in debugger shell from:

Window > Show View > Other > Debug > Debugger Shell > enter command "displaytlb 1"

Have a great day,

Lunmin

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos