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

📄 tc.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.  * *//**************************************************************** * tc.h - Translation cache  *  *  * $Author: bosch $ * $Date: 1998/02/10 00:28:08 $ *****************************************************************/#ifndef TC_H#define TC_H#ifndef _LANGUAGE_ASSEMBLY/* **************************************************************** * Translation Cache Address * ****************************************************************/#ifdef SIM_ALPHA#include <alpha/inst.h>typedef union alpha_instruction * TCA;#elsetypedef Inst * TCA;#endif#define TCFLUSH_ALL -1#define TC_MAX_CACHES 4/* * The functions operating on the Tc */extern int tcGenNumber; extern void TC_init     (int numCaches, int size[], int pctcSize[], int annotationSize[], Inst breakOp );extern void TC_flush    (int cache);extern TCA  TC_GetTCPtr (int cache);extern void TC_SetTCNext(int cache,TCA, TCA );extern int  TC_Is_Room  (int len, int cache );extern int  TC_InTC     (int cache,TCA addr );extern void TC_IncrementSize(int cache, int length);extern void TC_PCInsert (int code, TCA tca, VA vAddr, MA mAddr);extern TCA  TC_PCLookup (int code, VA vAddr, MA mAddr);#endif /* LANGUAGE_ASSEMBLY */#endif /* TC_H */

⌨️ 快捷键说明

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