⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cp0.h

📁 思科路由器仿真器,用来仿7200系列得,可以在电脑上模拟路由器-Cisco router simulator, used to fake a 7200 series can be simulated
💻 H
字号:
/* * Cisco 7200 (Predator) simulation platform. * Copyright (c) 2005,2006 Christophe Fillot (cf@utc.fr) */#ifndef __CP0_H__#define __CP0_H__#include "utils.h" /* CP0 register names */extern char *mips64_cp0_reg_names[];/* Get cp0 register index given its name */int cp0_get_reg_index(char *name);/* Get the CPU operating mode (User,Supervisor or Kernel) */u_int cp0_get_mode(cpu_mips_t *cpu);/* Get a cp0 register */m_uint64_t cp0_get_reg(cpu_mips_t *cpu,u_int cp0_reg);/* DMFC0 */fastcall void cp0_exec_dmfc0(cpu_mips_t *cpu,u_int gp_reg,u_int cp0_reg);/* DMTC0 */fastcall void cp0_exec_dmtc0(cpu_mips_t *cpu,u_int gp_reg,u_int cp0_reg);/* MFC0 */fastcall void cp0_exec_mfc0(cpu_mips_t *cpu,u_int gp_reg,u_int cp0_reg);/* MTC0 */fastcall void cp0_exec_mtc0(cpu_mips_t *cpu,u_int gp_reg,u_int cp0_reg);/* CFC0 */fastcall void cp0_exec_cfc0(cpu_mips_t *cpu,u_int gp_reg,u_int cp0_reg);/* CTC0 */fastcall void cp0_exec_ctc0(cpu_mips_t *cpu,u_int gp_reg,u_int cp0_reg);/* TLB lookup */int cp0_tlb_lookup(cpu_mips_t *cpu,m_uint64_t vaddr,mts_map_t *res);/* Map all TLB entries into the MTS */void cp0_map_all_tlb_to_mts(cpu_mips_t *cpu);/* TLBP: Probe a TLB entry */fastcall void cp0_exec_tlbp(cpu_mips_t *cpu);/* TLBR: Read Indexed TLB entry */fastcall void cp0_exec_tlbr(cpu_mips_t *cpu);/* TLBWI: Write Indexed TLB entry */fastcall void cp0_exec_tlbwi(cpu_mips_t *cpu);/* TLBWR: Write Random TLB entry */fastcall void cp0_exec_tlbwr(cpu_mips_t *cpu);/* Raw dump of the TLB */void tlb_raw_dump(cpu_mips_t *cpu);/* Dump the specified TLB entry */void tlb_dump_entry(cpu_mips_t *cpu,u_int index);/* Human-Readable dump of the TLB */void tlb_dump(cpu_mips_t *cpu);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -