소스 검색

UserspaceEmulator: Dump backtrace on FPU instruction

Andreas Kling 5 년 전
부모
커밋
0ce4d3e942
1개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. 8 1
      DevTools/UserspaceEmulator/SoftCPU.cpp

+ 8 - 1
DevTools/UserspaceEmulator/SoftCPU.cpp

@@ -910,7 +910,14 @@ void SoftCPU::DIV_RM32(const X86::Instruction& insn)
 void SoftCPU::DIV_RM8(const X86::Instruction&) { TODO(); }
 void SoftCPU::ENTER16(const X86::Instruction&) { TODO(); }
 void SoftCPU::ENTER32(const X86::Instruction&) { TODO(); }
-void SoftCPU::ESCAPE(const X86::Instruction&) { TODO(); }
+
+void SoftCPU::ESCAPE(const X86::Instruction&)
+{
+    dbg() << "FIXME: x87 floating-point support";
+    m_emulator.dump_backtrace();
+    TODO();
+}
+
 void SoftCPU::HLT(const X86::Instruction&) { TODO(); }
 void SoftCPU::IDIV_RM16(const X86::Instruction&) { TODO(); }