?? cpu.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 + -