user_exit.tcl
来自「一个用在mips体系结构中的操作系统」· TCL 代码 · 共 38 行
TCL
38 行
## 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. ### user_exit.tcl## Kill the simulator after a certain number of user instructions have# been executed. Note that the count is not exact. It will exit on the# first kernel ## $Author: bosch $# $Date: 1998/02/10 00:26:46 $annotation set osEvent startUser { set userInstsStart($CPU) $INSTS}annotation set osEvent endUser { global userExitInsts set instsExecuted [expr $INSTS - $userInstsStart($CPU)] set remaining [expr $userExitInsts - $instsExecuted] if {$remaining < 0} { console "USER_EXIT: leaving with $remaining remaining instructions\n" simosExit } else { set userExitInsts $remaining }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?