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

📄 cpu.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 __CPU_H__#define __CPU_H__#include "mips64.h"/* CPU group definition */typedef struct cpu_group cpu_group_t;struct cpu_group {   char *name;   cpu_mips_t *cpu_list;   void *priv_data;};/* Find a CPU in a group given its ID */cpu_mips_t *cpu_group_find_id(cpu_group_t *group,u_int id);/* Find the highest CPU ID in a CPU group */int cpu_group_find_highest_id(cpu_group_t *group,u_int *highest_id);/* Add a CPU in a CPU group */int cpu_group_add(cpu_group_t *group,cpu_mips_t *cpu);/* Create a new CPU group */cpu_group_t *cpu_group_create(char *name);/* Delete a CPU group */void cpu_group_delete(cpu_group_t *group);/* Rebuild the MTS subsystem for a CPU group */int cpu_group_rebuild_mts(cpu_group_t *group);/* Log a message for a CPU */void cpu_log(cpu_mips_t *cpu,char *module,char *format,...);/* Create a new CPU */cpu_mips_t *cpu_create(vm_instance_t *vm,u_int id);/* Delete a CPU */void cpu_delete(cpu_mips_t *cpu);/* Start a CPU */void cpu_start(cpu_mips_t *cpu);/* Stop a CPU */void cpu_stop(cpu_mips_t *cpu);/* Start all CPUs of a CPU group */void cpu_group_start_all_cpu(cpu_group_t *group);/* Stop all CPUs of a CPU group */void cpu_group_stop_all_cpu(cpu_group_t *group);/* Set a state of all CPUs of a CPU group */void cpu_group_set_state(cpu_group_t *group,u_int state);/* Synchronize on CPUs (all CPUs must be inactive) */int cpu_group_sync_state(cpu_group_t *group);/* Save state of all CPUs */int cpu_group_save_state(cpu_group_t *group);/* Restore state of all CPUs */int cpu_group_restore_state(cpu_group_t *group);#endif

⌨️ 快捷键说明

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