#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"
CP15 Interface for ARM
#define MAX_CP15_INFO_STRING_LEN 511 |
Referenced by jtag_arm7_ReadCP15Info(), and jtag_arm9_ReadCP15Info().
void jtag_arm_ReadCP15Info | ( | void | ) |
check if CP15 is present and if so read out the ARM Sysinfo (and dump this to screen).
- |
References cp15_info_string, cp15_info_string_end, DBG_LEVEL_GDB_ARM_ERROR, DBG_LEVEL_GDB_ARM_WARN, dbgPrintf(), jtag_arm7_ReadCP15Info(), and jtag_arm9_ReadCP15Info().
Referenced by gdb_restart(), and jtag_test().
void jtag_arm7_ReadCP15Info | ( | void | ) |
Read ARM7 SysInfo from CP15
- |
References ARM_MRC_CP15_R0_C0_CACHEREG, ARM_MRC_CP15_R0_C0_IDREG, cp15_info_string, cp15_info_string_end, DBG_LEVEL_JTAG_ARM, dbgPrintf(), jtag_arm720_CP15DataExchange(), jtag_arm720_CP15InstrReg(), jtag_eos(), MAX_CP15_INFO_STRING_LEN, READ_WRITE, transaction::size, and WRITE_ONLY.
Referenced by jtag_arm_ReadCP15Info().
void jtag_arm9_ReadCP15Info | ( | void | ) |
Read ARM9 SysInfo from CP15
- |
References cp15_info_string, cp15_info_string_end, DBG_LEVEL_JTAG_ARM, dbgPrintf(), jtag_arm920_CP15PhysRegRead(), MAX_CP15_INFO_STRING_LEN, MMU920_PHYSACCESS_CP15_REGADDRESS_CACHETYPE, MMU920_PHYSACCESS_CP15_REGADDRESS_IDCODE, and transaction::size.
Referenced by jtag_arm_ReadCP15Info().
int cp15_info_string_end = 0 [static] |
Referenced by jtag_arm7_ReadCP15Info(), jtag_arm9_ReadCP15Info(), and jtag_arm_ReadCP15Info().
char cp15_info_string[MAX_CP15_INFO_STRING_LEN+1] = "" [static] |
Referenced by jtag_arm7_ReadCP15Info(), jtag_arm9_ReadCP15Info(), and jtag_arm_ReadCP15Info().