jt_cp15_920.c File Reference

#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdio.h>
#include "dbg_msg.h"
#include "jt_arm.h"
#include "jt_cp15.h"
#include "jt_instr.h"

Functions


Detailed Description

ARM920 CP15-MMU Interface


Function Documentation

unsigned int jtag_arm920_CP15PhysRegRead ( int  nreg  ) 

Read from "physical" CP15 Register.
Some of the CP15 Registers having an direct access like

  • IDCODE
  • CACHETYPE
  • MMUCONTROL
  • FCSE PID
     chain 15 the length is 40 bits
     Physical access mode to CP15
 bit [0] = 1;
 bit [1..32]: register value
 bit [33.38]: register address
 bit [39]:  read/write
 
Parameters:
nreg register address number
Returns:
register value

References DBG_LEVEL_JTAG_ICERT_LOW, dbgPrintf(), instr_intest, INTEST, jtag_arm_set_chain(), jtag_exchange_data(), jtag_send_instr(), jtag_supp_bitstr2int_MSB_First(), jtag_supp_int2bitstr_MSB_First(), and scan_chain.

Referenced by jtag_arm920_CP15_CleanDcache(), jtag_arm920_CP15_DrainWriteBuffer(), jtag_arm920_CP15_InvalidateICache(), jtag_arm920_CP15_InvalidateTLB(), jtag_arm920_CP15_ReadDTTB(), jtag_arm920_CP15_ReadITTB(), jtag_arm9_ReadCP15Info(), and jtag_test().

void jtag_arm920_CP15PhysRegWrite ( int  nreg,
unsigned int  regdata 
)

Write data into "physical" CP15 Register.
Some of the CP15 Registers having an direct access like

  • IDCODE
  • CACHETYPE
  • MMUCONTROL
  • FCSE PID
     chain 15 the length is 40 bits
     Physical access mode to CP15
 bit [0] = 1;
 bit [1..32]: register value
 bit [33.38]: register address
 bit [39]:  read/write
 
Parameters:
nreg register address number
regdata register value
Returns:
-

References DBG_LEVEL_JTAG_ICERT_LOW, DBG_LEVEL_JTAG_INSTR, dbgPrintf(), IF_DBG, instr_intest, INTEST, jtag_arm_set_chain(), jtag_exchange_data(), jtag_send_instr(), jtag_supp_int2bitstr_MSB_First(), and scan_chain.

Referenced by jtag_arm920_CP15_CleanDcache(), jtag_arm920_CP15_DrainWriteBuffer(), jtag_arm920_CP15_InvalidateICache(), jtag_arm920_CP15_InvalidateTLB(), jtag_arm920_CP15_ReadDTTB(), and jtag_arm920_CP15_ReadITTB().

void jtag_arm920_CP15Interpret ( unsigned int  cp15instr  ) 

Write CP15 ARM instruction into chain.
This instruction will be interpreted at next System speed run.

 chain 15 the length is 40 bits
 Interpreted access mode to CP15
 bit [0] = 0;
 bit [1..32]: MCR or MRC instr.
 bit [33.38]: 00000
 bit [39]: = 0 write ()
 
Parameters:
cp15instr CP15 ARM instruction
Returns:
-

References DBG_LEVEL_JTAG_ICERT_LOW, DBG_LEVEL_JTAG_INSTR, dbgPrintf(), IF_DBG, instr_intest, INTEST, jtag_arm_set_chain(), jtag_exchange_data(), jtag_send_instr(), jtag_supp_int2bitstr_MSB_First(), and scan_chain.

Referenced by jtag_arm920_CP15_CleanDcache(), jtag_arm920_CP15_DrainWriteBuffer(), jtag_arm920_CP15_InvalidateICache(), jtag_arm920_CP15_InvalidateTLB(), jtag_arm920_CP15_ReadDTTB(), and jtag_arm920_CP15_ReadITTB().

unsigned int jtag_arm920_CP15_ReadITTB ( void   ) 
unsigned int jtag_arm920_CP15_ReadDTTB ( void   ) 
void jtag_arm920_CP15_CleanDcache ( void   ) 
void jtag_arm920_CP15_DrainWriteBuffer ( void   ) 
void jtag_arm920_CP15_InvalidateICache ( void   ) 
void jtag_arm920_CP15_InvalidateTLB ( void   ) 

This file is part of the documentation for JTAG-GDB Server for ARM .

Generated on Mon Feb 15 21:23:21 2010 by doxygen 1.6.2.