dash_prefetch.h

来自「一个用在mips体系结构中的操作系统」· C头文件 代码 · 共 36 行

H
36
字号
/* * 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.  * *//***************************************************************** * dash_prefetch.h *  * $Date: 1998/02/10 00:31:36 $ * $Author: bosch $ *****************************************************************/#ifndef DASH_PREFETCH_H#define DASH_PREFETCH_Hextern int dashPrefetchEnabled;extern int DashPrefetch(int cpuNum, VA vAddr, void * val, int size,int *retVal);extern int DashTclCmd(ClientData, Tcl_Interp *interp, int argc, char *argv[]);#ifdef DASH_PREFETCH# define DASH_DO_PREFETCH(_cpu,_va,_val,_sz) { \   int ret;      \   if (dashPrefetchEnabled  && DashPrefetch(_cpu,_va,_val,_sz,&ret)) \          return ret;  \}                                                                                                                                            #else# define DASH_DO_PREFETCH(_cpu,_va,_val,_sz)   /* no run-time overhead */#endif#endif

⌨️ 快捷键说明

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