📄 user_exit.tcl
字号:
## 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -