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

📄 tc_coherence.h

📁 一个用在mips体系结构中的操作系统
💻 H
字号:
/* * Copyright (C) 1996-1998 by the Board of Trustees *    of Leland Stanford Junior University. *  * This file is part of the SimOS distribution.  * See LICENSE file for terms of the license.  * *//***   NAME     icache_coherence   PURPOSE     This maintains a bitmap so we can detect when chunks (pages or	 lines are obvious candidates) that have	 code executed off of them are written to.  Eventually we may have	 cacheflush system calls routed here.	 When a write is detected, all translation state is flushed.   NOTES***/#ifndef TC_COHERENCE_H#define TC_COHERENCE_H#if 0/* #define CODE 4*//*#define DATA 7*/typedef enum { ICHECK_FULL = 19,               ICHECK_MOST = 17,               ICHECK_SOME = 13,               ICHECK_NONE = 11 } Icheck_t;extern Icheck_t ICheckLevel;/* One bit for each line of physical memory *//* Both MP and MP_IN_UP lay out consecutive cpus consecutively */#endifextern void TCcoherence_init(MA startAddr);extern void TCcoherence_flush(void);extern void TCcoherence_mark_code( MA  start, MA finish );/* 0 - return normally, 1 - return via set_pc... */extern int TCcoherence_check( MA start, MA finish );extern int TCcoherence_is_code(MA pAddr );#endif /* TC_COHERENCE */

⌨️ 快捷键说明

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