For help, type "help" (nemu) ./runall.sh Unknown command './runall.sh' (nemu) c invalid opcode(eip = 0x00100026): f3 0f 1e fb 55 89 e5 83 ... There are two cases which will trigger this unexpected exception: 1. The instruction at eip = 0x00100026 is not implemented. 2. Something is implemented incorrectly. Find this eip(0x00100026) in the disassembling result to distinguish which case it is. If it is the first case, see _ ____ ___ __ __ __ _ (_)___ \ / _ \ / / | \/ | | | _ __) | (_) |/ /_ | \ / | __ _ _ __ _ _ __ _| | | ||__ < > _ <| '_ \ | |\/| |/ _` | '_ \| | | |/ _` | | | |___) | (_) | (_) | | | | | (_| | | | | |_| | (_| | | |_|____/ \___/ \___/ |_| |_|\__,_|_| |_|\__,_|\__,_|_| for more details. If it is the second case, remember: * The machine is always right! * Every line of untested code is always wrong!怎么解决
时间: 2023-08-21 07:39:44 浏览: 105
这是一个计算机指令执行错误的提示信息,可能是指令未被正确实现或实现有误导致的。你可以按照提示中的步骤来诊断和解决问题。具体来说,你可以先查看指令的反汇编结果,确认是哪种情况导致的问题,然后分别采取不同的解决方案。如果是第一种情况,你可以参考提示中给出的链接来了解更多信息;如果是第二种情况,你需要谨记机器始终是正确的,每一行未经测试的代码都是错误的这个原则,找到代码中的问题并进行修复。
相关问题
q make: *** [/home/lh/ics2021/nemu/scripts/native.mk:23:run] 错误 1
根据提供的引用内容,出现的错误是"q make: *** [/home/lh/ics2021/nemu/scripts/native.mk:23:run] 错误 1"。根据引用中的信息,这个错误发生在键入"q"之后。根据引用中的推测,当键入"q"时,会调用cmd_q函数,该函数什么也不做,只返回-1。然后在main函数中会判断if(cmd_q < 0),因为-1 < 0,所以直接返回main函数,最终导致了错误的发生。
这个错误可能是由于在运行nemu时出现了问题,而不是makefile的错误。需要进一步查找错误的原因和解决方案。可以尝试按照引用中提供的方法,安装 Ubuntu 18.04 版本,并配置更新源。然后安装引用中提到的 NEMU 实验所需的组件。这样可能可以解决这个错误。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [2021 NEMU PA1 RTFSC 优美地退出](https://blog.csdn.net/qq_45771689/article/details/120814761)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [附件2-NEMU实验环境配置1](https://download.csdn.net/download/weixin_35794740/86303213)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
fatal: not a git repository (or any of the parent directories): .git make: [nemu/Makefile.part:8: obj/nemu/nemu] Error 128 (ignored)
fatal: not a git repository (or any of the parent directories): .git是一个git命令的错误提示信息,它表示当前目录不是一个有效的git仓库,或者当前目录的父目录中也没有.git文件夹。这个错误通常发生在你尝试在一个非git仓库中执行git命令时。解决这个问题的方法是确保你在正确的git仓库目录下执行命令,或者在一个已经初始化的git仓库中进行操作。