SoftCPU.cpp 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  1. /*
  2. * Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
  3. * All rights reserved.
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions are met:
  7. *
  8. * 1. Redistributions of source code must retain the above copyright notice, this
  9. * list of conditions and the following disclaimer.
  10. *
  11. * 2. Redistributions in binary form must reproduce the above copyright notice,
  12. * this list of conditions and the following disclaimer in the documentation
  13. * and/or other materials provided with the distribution.
  14. *
  15. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  16. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  17. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  18. * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  19. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  20. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  21. * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  22. * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  23. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  24. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  25. */
  26. #include "SoftCPU.h"
  27. #include "Emulator.h"
  28. #include <AK/Assertions.h>
  29. #include <stdio.h>
  30. namespace UserspaceEmulator {
  31. SoftCPU::SoftCPU(Emulator& emulator)
  32. : m_emulator(emulator)
  33. {
  34. m_reg32_table[X86::RegisterEAX] = &m_eax;
  35. m_reg32_table[X86::RegisterEBX] = &m_ebx;
  36. m_reg32_table[X86::RegisterECX] = &m_ecx;
  37. m_reg32_table[X86::RegisterEDX] = &m_edx;
  38. m_reg32_table[X86::RegisterEBP] = &m_ebp;
  39. m_reg32_table[X86::RegisterESP] = &m_esp;
  40. m_reg32_table[X86::RegisterESI] = &m_esi;
  41. m_reg32_table[X86::RegisterEDI] = &m_edi;
  42. }
  43. void SoftCPU::dump() const
  44. {
  45. printf("eax=%08x ebx=%08x ecx=%08x edx=%08x ", m_eax, m_ebx, m_ecx, m_edx);
  46. printf("ebp=%08x esp=%08x esi=%08x edi=%08x ", m_ebp, m_esp, m_esi, m_edi);
  47. printf("o=%u s=%u z=%u a=%u p=%u c=%u\n", m_of, m_sf, m_zf, m_af, m_pf, m_cf);
  48. }
  49. void SoftCPU::AAA(const X86::Instruction&) { TODO(); }
  50. void SoftCPU::AAD(const X86::Instruction&) { TODO(); }
  51. void SoftCPU::AAM(const X86::Instruction&) { TODO(); }
  52. void SoftCPU::AAS(const X86::Instruction&) { TODO(); }
  53. void SoftCPU::ADC_AL_imm8(const X86::Instruction&) { TODO(); }
  54. void SoftCPU::ADC_AX_imm16(const X86::Instruction&) { TODO(); }
  55. void SoftCPU::ADC_EAX_imm32(const X86::Instruction&) { TODO(); }
  56. void SoftCPU::ADC_RM16_imm16(const X86::Instruction&) { TODO(); }
  57. void SoftCPU::ADC_RM16_imm8(const X86::Instruction&) { TODO(); }
  58. void SoftCPU::ADC_RM16_reg16(const X86::Instruction&) { TODO(); }
  59. void SoftCPU::ADC_RM32_imm32(const X86::Instruction&) { TODO(); }
  60. void SoftCPU::ADC_RM32_imm8(const X86::Instruction&) { TODO(); }
  61. void SoftCPU::ADC_RM32_reg32(const X86::Instruction&) { TODO(); }
  62. void SoftCPU::ADC_RM8_imm8(const X86::Instruction&) { TODO(); }
  63. void SoftCPU::ADC_RM8_reg8(const X86::Instruction&) { TODO(); }
  64. void SoftCPU::ADC_reg16_RM16(const X86::Instruction&) { TODO(); }
  65. void SoftCPU::ADC_reg32_RM32(const X86::Instruction&) { TODO(); }
  66. void SoftCPU::ADC_reg8_RM8(const X86::Instruction&) { TODO(); }
  67. void SoftCPU::ADD_AL_imm8(const X86::Instruction&) { TODO(); }
  68. void SoftCPU::ADD_AX_imm16(const X86::Instruction&) { TODO(); }
  69. void SoftCPU::ADD_EAX_imm32(const X86::Instruction&) { TODO(); }
  70. void SoftCPU::ADD_RM16_imm16(const X86::Instruction&) { TODO(); }
  71. void SoftCPU::ADD_RM16_imm8(const X86::Instruction&) { TODO(); }
  72. void SoftCPU::ADD_RM16_reg16(const X86::Instruction&) { TODO(); }
  73. void SoftCPU::ADD_RM32_imm32(const X86::Instruction&) { TODO(); }
  74. void SoftCPU::ADD_RM32_imm8(const X86::Instruction&) { TODO(); }
  75. void SoftCPU::ADD_RM32_reg32(const X86::Instruction&) { TODO(); }
  76. void SoftCPU::ADD_RM8_imm8(const X86::Instruction&) { TODO(); }
  77. void SoftCPU::ADD_RM8_reg8(const X86::Instruction&) { TODO(); }
  78. void SoftCPU::ADD_reg16_RM16(const X86::Instruction&) { TODO(); }
  79. void SoftCPU::ADD_reg32_RM32(const X86::Instruction&) { TODO(); }
  80. void SoftCPU::ADD_reg8_RM8(const X86::Instruction&) { TODO(); }
  81. void SoftCPU::AND_AL_imm8(const X86::Instruction&) { TODO(); }
  82. void SoftCPU::AND_AX_imm16(const X86::Instruction&) { TODO(); }
  83. void SoftCPU::AND_EAX_imm32(const X86::Instruction&) { TODO(); }
  84. void SoftCPU::AND_RM16_imm16(const X86::Instruction&) { TODO(); }
  85. void SoftCPU::AND_RM16_imm8(const X86::Instruction&) { TODO(); }
  86. void SoftCPU::AND_RM16_reg16(const X86::Instruction&) { TODO(); }
  87. void SoftCPU::AND_RM32_imm32(const X86::Instruction&) { TODO(); }
  88. void SoftCPU::AND_RM32_imm8(const X86::Instruction&) { TODO(); }
  89. void SoftCPU::AND_RM32_reg32(const X86::Instruction&) { TODO(); }
  90. void SoftCPU::AND_RM8_imm8(const X86::Instruction&) { TODO(); }
  91. void SoftCPU::AND_RM8_reg8(const X86::Instruction&) { TODO(); }
  92. void SoftCPU::AND_reg16_RM16(const X86::Instruction&) { TODO(); }
  93. void SoftCPU::AND_reg32_RM32(const X86::Instruction&) { TODO(); }
  94. void SoftCPU::AND_reg8_RM8(const X86::Instruction&) { TODO(); }
  95. void SoftCPU::ARPL(const X86::Instruction&) { TODO(); }
  96. void SoftCPU::BOUND(const X86::Instruction&) { TODO(); }
  97. void SoftCPU::BSF_reg16_RM16(const X86::Instruction&) { TODO(); }
  98. void SoftCPU::BSF_reg32_RM32(const X86::Instruction&) { TODO(); }
  99. void SoftCPU::BSR_reg16_RM16(const X86::Instruction&) { TODO(); }
  100. void SoftCPU::BSR_reg32_RM32(const X86::Instruction&) { TODO(); }
  101. void SoftCPU::BSWAP_reg32(const X86::Instruction&) { TODO(); }
  102. void SoftCPU::BTC_RM16_imm8(const X86::Instruction&) { TODO(); }
  103. void SoftCPU::BTC_RM16_reg16(const X86::Instruction&) { TODO(); }
  104. void SoftCPU::BTC_RM32_imm8(const X86::Instruction&) { TODO(); }
  105. void SoftCPU::BTC_RM32_reg32(const X86::Instruction&) { TODO(); }
  106. void SoftCPU::BTR_RM16_imm8(const X86::Instruction&) { TODO(); }
  107. void SoftCPU::BTR_RM16_reg16(const X86::Instruction&) { TODO(); }
  108. void SoftCPU::BTR_RM32_imm8(const X86::Instruction&) { TODO(); }
  109. void SoftCPU::BTR_RM32_reg32(const X86::Instruction&) { TODO(); }
  110. void SoftCPU::BTS_RM16_imm8(const X86::Instruction&) { TODO(); }
  111. void SoftCPU::BTS_RM16_reg16(const X86::Instruction&) { TODO(); }
  112. void SoftCPU::BTS_RM32_imm8(const X86::Instruction&) { TODO(); }
  113. void SoftCPU::BTS_RM32_reg32(const X86::Instruction&) { TODO(); }
  114. void SoftCPU::BT_RM16_imm8(const X86::Instruction&) { TODO(); }
  115. void SoftCPU::BT_RM16_reg16(const X86::Instruction&) { TODO(); }
  116. void SoftCPU::BT_RM32_imm8(const X86::Instruction&) { TODO(); }
  117. void SoftCPU::BT_RM32_reg32(const X86::Instruction&) { TODO(); }
  118. void SoftCPU::CALL_FAR_mem16(const X86::Instruction&) { TODO(); }
  119. void SoftCPU::CALL_FAR_mem32(const X86::Instruction&) { TODO(); }
  120. void SoftCPU::CALL_RM16(const X86::Instruction&) { TODO(); }
  121. void SoftCPU::CALL_RM32(const X86::Instruction&) { TODO(); }
  122. void SoftCPU::CALL_imm16(const X86::Instruction&) { TODO(); }
  123. void SoftCPU::CALL_imm16_imm16(const X86::Instruction&) { TODO(); }
  124. void SoftCPU::CALL_imm16_imm32(const X86::Instruction&) { TODO(); }
  125. void SoftCPU::CALL_imm32(const X86::Instruction&) { TODO(); }
  126. void SoftCPU::CBW(const X86::Instruction&) { TODO(); }
  127. void SoftCPU::CDQ(const X86::Instruction&) { TODO(); }
  128. void SoftCPU::CLC(const X86::Instruction&) { TODO(); }
  129. void SoftCPU::CLD(const X86::Instruction&) { TODO(); }
  130. void SoftCPU::CLI(const X86::Instruction&) { TODO(); }
  131. void SoftCPU::CLTS(const X86::Instruction&) { TODO(); }
  132. void SoftCPU::CMC(const X86::Instruction&) { TODO(); }
  133. void SoftCPU::CMOVcc_reg16_RM16(const X86::Instruction&) { TODO(); }
  134. void SoftCPU::CMOVcc_reg32_RM32(const X86::Instruction&) { TODO(); }
  135. void SoftCPU::CMPSB(const X86::Instruction&) { TODO(); }
  136. void SoftCPU::CMPSD(const X86::Instruction&) { TODO(); }
  137. void SoftCPU::CMPSW(const X86::Instruction&) { TODO(); }
  138. void SoftCPU::CMPXCHG_RM16_reg16(const X86::Instruction&) { TODO(); }
  139. void SoftCPU::CMPXCHG_RM32_reg32(const X86::Instruction&) { TODO(); }
  140. void SoftCPU::CMPXCHG_RM8_reg8(const X86::Instruction&) { TODO(); }
  141. void SoftCPU::CMP_AL_imm8(const X86::Instruction&) { TODO(); }
  142. void SoftCPU::CMP_AX_imm16(const X86::Instruction&) { TODO(); }
  143. void SoftCPU::CMP_EAX_imm32(const X86::Instruction&) { TODO(); }
  144. void SoftCPU::CMP_RM16_imm16(const X86::Instruction&) { TODO(); }
  145. void SoftCPU::CMP_RM16_imm8(const X86::Instruction&) { TODO(); }
  146. void SoftCPU::CMP_RM16_reg16(const X86::Instruction&) { TODO(); }
  147. void SoftCPU::CMP_RM32_imm32(const X86::Instruction&) { TODO(); }
  148. void SoftCPU::CMP_RM32_imm8(const X86::Instruction&) { TODO(); }
  149. void SoftCPU::CMP_RM32_reg32(const X86::Instruction&) { TODO(); }
  150. void SoftCPU::CMP_RM8_imm8(const X86::Instruction&) { TODO(); }
  151. void SoftCPU::CMP_RM8_reg8(const X86::Instruction&) { TODO(); }
  152. void SoftCPU::CMP_reg16_RM16(const X86::Instruction&) { TODO(); }
  153. void SoftCPU::CMP_reg32_RM32(const X86::Instruction&) { TODO(); }
  154. void SoftCPU::CMP_reg8_RM8(const X86::Instruction&) { TODO(); }
  155. void SoftCPU::CPUID(const X86::Instruction&) { TODO(); }
  156. void SoftCPU::CWD(const X86::Instruction&) { TODO(); }
  157. void SoftCPU::CWDE(const X86::Instruction&) { TODO(); }
  158. void SoftCPU::DAA(const X86::Instruction&) { TODO(); }
  159. void SoftCPU::DAS(const X86::Instruction&) { TODO(); }
  160. void SoftCPU::DEC_RM16(const X86::Instruction&) { TODO(); }
  161. void SoftCPU::DEC_RM32(const X86::Instruction&) { TODO(); }
  162. void SoftCPU::DEC_RM8(const X86::Instruction&) { TODO(); }
  163. void SoftCPU::DEC_reg16(const X86::Instruction&) { TODO(); }
  164. void SoftCPU::DEC_reg32(const X86::Instruction&) { TODO(); }
  165. void SoftCPU::DIV_RM16(const X86::Instruction&) { TODO(); }
  166. void SoftCPU::DIV_RM32(const X86::Instruction&) { TODO(); }
  167. void SoftCPU::DIV_RM8(const X86::Instruction&) { TODO(); }
  168. void SoftCPU::ENTER16(const X86::Instruction&) { TODO(); }
  169. void SoftCPU::ENTER32(const X86::Instruction&) { TODO(); }
  170. void SoftCPU::ESCAPE(const X86::Instruction&) { TODO(); }
  171. void SoftCPU::HLT(const X86::Instruction&) { TODO(); }
  172. void SoftCPU::IDIV_RM16(const X86::Instruction&) { TODO(); }
  173. void SoftCPU::IDIV_RM32(const X86::Instruction&) { TODO(); }
  174. void SoftCPU::IDIV_RM8(const X86::Instruction&) { TODO(); }
  175. void SoftCPU::IMUL_RM16(const X86::Instruction&) { TODO(); }
  176. void SoftCPU::IMUL_RM32(const X86::Instruction&) { TODO(); }
  177. void SoftCPU::IMUL_RM8(const X86::Instruction&) { TODO(); }
  178. void SoftCPU::IMUL_reg16_RM16(const X86::Instruction&) { TODO(); }
  179. void SoftCPU::IMUL_reg16_RM16_imm16(const X86::Instruction&) { TODO(); }
  180. void SoftCPU::IMUL_reg16_RM16_imm8(const X86::Instruction&) { TODO(); }
  181. void SoftCPU::IMUL_reg32_RM32(const X86::Instruction&) { TODO(); }
  182. void SoftCPU::IMUL_reg32_RM32_imm32(const X86::Instruction&) { TODO(); }
  183. void SoftCPU::IMUL_reg32_RM32_imm8(const X86::Instruction&) { TODO(); }
  184. void SoftCPU::INC_RM16(const X86::Instruction&) { TODO(); }
  185. void SoftCPU::INC_RM32(const X86::Instruction&) { TODO(); }
  186. void SoftCPU::INC_RM8(const X86::Instruction&) { TODO(); }
  187. void SoftCPU::INC_reg16(const X86::Instruction&) { TODO(); }
  188. void SoftCPU::INC_reg32(const X86::Instruction&) { TODO(); }
  189. void SoftCPU::INSB(const X86::Instruction&) { TODO(); }
  190. void SoftCPU::INSD(const X86::Instruction&) { TODO(); }
  191. void SoftCPU::INSW(const X86::Instruction&) { TODO(); }
  192. void SoftCPU::INT3(const X86::Instruction&) { TODO(); }
  193. void SoftCPU::INTO(const X86::Instruction&) { TODO(); }
  194. void SoftCPU::INT_imm8(const X86::Instruction& insn)
  195. {
  196. ASSERT(insn.imm8() == 0x82);
  197. m_eax = m_emulator.virt_syscall(m_eax, m_edx, m_ecx, m_ebx);
  198. }
  199. void SoftCPU::INVLPG(const X86::Instruction&) { TODO(); }
  200. void SoftCPU::IN_AL_DX(const X86::Instruction&) { TODO(); }
  201. void SoftCPU::IN_AL_imm8(const X86::Instruction&) { TODO(); }
  202. void SoftCPU::IN_AX_DX(const X86::Instruction&) { TODO(); }
  203. void SoftCPU::IN_AX_imm8(const X86::Instruction&) { TODO(); }
  204. void SoftCPU::IN_EAX_DX(const X86::Instruction&) { TODO(); }
  205. void SoftCPU::IN_EAX_imm8(const X86::Instruction&) { TODO(); }
  206. void SoftCPU::IRET(const X86::Instruction&) { TODO(); }
  207. void SoftCPU::JCXZ_imm8(const X86::Instruction&) { TODO(); }
  208. void SoftCPU::JMP_FAR_mem16(const X86::Instruction&) { TODO(); }
  209. void SoftCPU::JMP_FAR_mem32(const X86::Instruction&) { TODO(); }
  210. void SoftCPU::JMP_RM16(const X86::Instruction&) { TODO(); }
  211. void SoftCPU::JMP_RM32(const X86::Instruction&) { TODO(); }
  212. void SoftCPU::JMP_imm16(const X86::Instruction&) { TODO(); }
  213. void SoftCPU::JMP_imm16_imm16(const X86::Instruction&) { TODO(); }
  214. void SoftCPU::JMP_imm16_imm32(const X86::Instruction&) { TODO(); }
  215. void SoftCPU::JMP_imm32(const X86::Instruction&) { TODO(); }
  216. void SoftCPU::JMP_short_imm8(const X86::Instruction&) { TODO(); }
  217. void SoftCPU::Jcc_NEAR_imm(const X86::Instruction&) { TODO(); }
  218. void SoftCPU::Jcc_imm8(const X86::Instruction&) { TODO(); }
  219. void SoftCPU::LAHF(const X86::Instruction&) { TODO(); }
  220. void SoftCPU::LAR_reg16_RM16(const X86::Instruction&) { TODO(); }
  221. void SoftCPU::LAR_reg32_RM32(const X86::Instruction&) { TODO(); }
  222. void SoftCPU::LDS_reg16_mem16(const X86::Instruction&) { TODO(); }
  223. void SoftCPU::LDS_reg32_mem32(const X86::Instruction&) { TODO(); }
  224. void SoftCPU::LEAVE16(const X86::Instruction&) { TODO(); }
  225. void SoftCPU::LEAVE32(const X86::Instruction&) { TODO(); }
  226. void SoftCPU::LEA_reg16_mem16(const X86::Instruction&) { TODO(); }
  227. void SoftCPU::LEA_reg32_mem32(const X86::Instruction&) { TODO(); }
  228. void SoftCPU::LES_reg16_mem16(const X86::Instruction&) { TODO(); }
  229. void SoftCPU::LES_reg32_mem32(const X86::Instruction&) { TODO(); }
  230. void SoftCPU::LFS_reg16_mem16(const X86::Instruction&) { TODO(); }
  231. void SoftCPU::LFS_reg32_mem32(const X86::Instruction&) { TODO(); }
  232. void SoftCPU::LGDT(const X86::Instruction&) { TODO(); }
  233. void SoftCPU::LGS_reg16_mem16(const X86::Instruction&) { TODO(); }
  234. void SoftCPU::LGS_reg32_mem32(const X86::Instruction&) { TODO(); }
  235. void SoftCPU::LIDT(const X86::Instruction&) { TODO(); }
  236. void SoftCPU::LLDT_RM16(const X86::Instruction&) { TODO(); }
  237. void SoftCPU::LMSW_RM16(const X86::Instruction&) { TODO(); }
  238. void SoftCPU::LODSB(const X86::Instruction&) { TODO(); }
  239. void SoftCPU::LODSD(const X86::Instruction&) { TODO(); }
  240. void SoftCPU::LODSW(const X86::Instruction&) { TODO(); }
  241. void SoftCPU::LOOPNZ_imm8(const X86::Instruction&) { TODO(); }
  242. void SoftCPU::LOOPZ_imm8(const X86::Instruction&) { TODO(); }
  243. void SoftCPU::LOOP_imm8(const X86::Instruction&) { TODO(); }
  244. void SoftCPU::LSL_reg16_RM16(const X86::Instruction&) { TODO(); }
  245. void SoftCPU::LSL_reg32_RM32(const X86::Instruction&) { TODO(); }
  246. void SoftCPU::LSS_reg16_mem16(const X86::Instruction&) { TODO(); }
  247. void SoftCPU::LSS_reg32_mem32(const X86::Instruction&) { TODO(); }
  248. void SoftCPU::LTR_RM16(const X86::Instruction&) { TODO(); }
  249. void SoftCPU::MOVSB(const X86::Instruction&) { TODO(); }
  250. void SoftCPU::MOVSD(const X86::Instruction&) { TODO(); }
  251. void SoftCPU::MOVSW(const X86::Instruction&) { TODO(); }
  252. void SoftCPU::MOVSX_reg16_RM8(const X86::Instruction&) { TODO(); }
  253. void SoftCPU::MOVSX_reg32_RM16(const X86::Instruction&) { TODO(); }
  254. void SoftCPU::MOVSX_reg32_RM8(const X86::Instruction&) { TODO(); }
  255. void SoftCPU::MOVZX_reg16_RM8(const X86::Instruction&) { TODO(); }
  256. void SoftCPU::MOVZX_reg32_RM16(const X86::Instruction&) { TODO(); }
  257. void SoftCPU::MOVZX_reg32_RM8(const X86::Instruction&) { TODO(); }
  258. void SoftCPU::MOV_AL_moff8(const X86::Instruction&) { TODO(); }
  259. void SoftCPU::MOV_AX_moff16(const X86::Instruction&) { TODO(); }
  260. void SoftCPU::MOV_CR_reg32(const X86::Instruction&) { TODO(); }
  261. void SoftCPU::MOV_DR_reg32(const X86::Instruction&) { TODO(); }
  262. void SoftCPU::MOV_EAX_moff32(const X86::Instruction&) { TODO(); }
  263. void SoftCPU::MOV_RM16_imm16(const X86::Instruction&) { TODO(); }
  264. void SoftCPU::MOV_RM16_reg16(const X86::Instruction&) { TODO(); }
  265. void SoftCPU::MOV_RM16_seg(const X86::Instruction&) { TODO(); }
  266. void SoftCPU::MOV_RM32_imm32(const X86::Instruction&) { TODO(); }
  267. void SoftCPU::MOV_RM32_reg32(const X86::Instruction& insn)
  268. {
  269. ASSERT(insn.modrm().is_register());
  270. *m_reg32_table[insn.modrm().register_index()] = *m_reg32_table[insn.register_index()];
  271. }
  272. void SoftCPU::MOV_RM8_imm8(const X86::Instruction&) { TODO(); }
  273. void SoftCPU::MOV_RM8_reg8(const X86::Instruction&) { TODO(); }
  274. void SoftCPU::MOV_moff16_AX(const X86::Instruction&) { TODO(); }
  275. void SoftCPU::MOV_moff32_EAX(const X86::Instruction&) { TODO(); }
  276. void SoftCPU::MOV_moff8_AL(const X86::Instruction&) { TODO(); }
  277. void SoftCPU::MOV_reg16_RM16(const X86::Instruction&) { TODO(); }
  278. void SoftCPU::MOV_reg16_imm16(const X86::Instruction&) { TODO(); }
  279. void SoftCPU::MOV_reg32_CR(const X86::Instruction&) { TODO(); }
  280. void SoftCPU::MOV_reg32_DR(const X86::Instruction&) { TODO(); }
  281. void SoftCPU::MOV_reg32_RM32(const X86::Instruction&) { TODO(); }
  282. void SoftCPU::MOV_reg32_imm32(const X86::Instruction& insn)
  283. {
  284. *m_reg32_table[insn.register_index()] = insn.imm32();
  285. }
  286. void SoftCPU::MOV_reg8_RM8(const X86::Instruction&) { TODO(); }
  287. void SoftCPU::MOV_reg8_imm8(const X86::Instruction&) { TODO(); }
  288. void SoftCPU::MOV_seg_RM16(const X86::Instruction&) { TODO(); }
  289. void SoftCPU::MOV_seg_RM32(const X86::Instruction&) { TODO(); }
  290. void SoftCPU::MUL_RM16(const X86::Instruction&) { TODO(); }
  291. void SoftCPU::MUL_RM32(const X86::Instruction&) { TODO(); }
  292. void SoftCPU::MUL_RM8(const X86::Instruction&) { TODO(); }
  293. void SoftCPU::NEG_RM16(const X86::Instruction&) { TODO(); }
  294. void SoftCPU::NEG_RM32(const X86::Instruction&) { TODO(); }
  295. void SoftCPU::NEG_RM8(const X86::Instruction&) { TODO(); }
  296. void SoftCPU::NOP(const X86::Instruction&) { TODO(); }
  297. void SoftCPU::NOT_RM16(const X86::Instruction&) { TODO(); }
  298. void SoftCPU::NOT_RM32(const X86::Instruction&) { TODO(); }
  299. void SoftCPU::NOT_RM8(const X86::Instruction&) { TODO(); }
  300. void SoftCPU::OR_AL_imm8(const X86::Instruction&) { TODO(); }
  301. void SoftCPU::OR_AX_imm16(const X86::Instruction&) { TODO(); }
  302. void SoftCPU::OR_EAX_imm32(const X86::Instruction&) { TODO(); }
  303. void SoftCPU::OR_RM16_imm16(const X86::Instruction&) { TODO(); }
  304. void SoftCPU::OR_RM16_imm8(const X86::Instruction&) { TODO(); }
  305. void SoftCPU::OR_RM16_reg16(const X86::Instruction&) { TODO(); }
  306. void SoftCPU::OR_RM32_imm32(const X86::Instruction&) { TODO(); }
  307. void SoftCPU::OR_RM32_imm8(const X86::Instruction&) { TODO(); }
  308. void SoftCPU::OR_RM32_reg32(const X86::Instruction&) { TODO(); }
  309. void SoftCPU::OR_RM8_imm8(const X86::Instruction&) { TODO(); }
  310. void SoftCPU::OR_RM8_reg8(const X86::Instruction&) { TODO(); }
  311. void SoftCPU::OR_reg16_RM16(const X86::Instruction&) { TODO(); }
  312. void SoftCPU::OR_reg32_RM32(const X86::Instruction&) { TODO(); }
  313. void SoftCPU::OR_reg8_RM8(const X86::Instruction&) { TODO(); }
  314. void SoftCPU::OUTSB(const X86::Instruction&) { TODO(); }
  315. void SoftCPU::OUTSD(const X86::Instruction&) { TODO(); }
  316. void SoftCPU::OUTSW(const X86::Instruction&) { TODO(); }
  317. void SoftCPU::OUT_DX_AL(const X86::Instruction&) { TODO(); }
  318. void SoftCPU::OUT_DX_AX(const X86::Instruction&) { TODO(); }
  319. void SoftCPU::OUT_DX_EAX(const X86::Instruction&) { TODO(); }
  320. void SoftCPU::OUT_imm8_AL(const X86::Instruction&) { TODO(); }
  321. void SoftCPU::OUT_imm8_AX(const X86::Instruction&) { TODO(); }
  322. void SoftCPU::OUT_imm8_EAX(const X86::Instruction&) { TODO(); }
  323. void SoftCPU::PADDB_mm1_mm2m64(const X86::Instruction&) { TODO(); }
  324. void SoftCPU::PADDW_mm1_mm2m64(const X86::Instruction&) { TODO(); }
  325. void SoftCPU::PADDD_mm1_mm2m64(const X86::Instruction&) { TODO(); }
  326. void SoftCPU::POPA(const X86::Instruction&) { TODO(); }
  327. void SoftCPU::POPAD(const X86::Instruction&) { TODO(); }
  328. void SoftCPU::POPF(const X86::Instruction&) { TODO(); }
  329. void SoftCPU::POPFD(const X86::Instruction&) { TODO(); }
  330. void SoftCPU::POP_DS(const X86::Instruction&) { TODO(); }
  331. void SoftCPU::POP_ES(const X86::Instruction&) { TODO(); }
  332. void SoftCPU::POP_FS(const X86::Instruction&) { TODO(); }
  333. void SoftCPU::POP_GS(const X86::Instruction&) { TODO(); }
  334. void SoftCPU::POP_RM16(const X86::Instruction&) { TODO(); }
  335. void SoftCPU::POP_RM32(const X86::Instruction&) { TODO(); }
  336. void SoftCPU::POP_SS(const X86::Instruction&) { TODO(); }
  337. void SoftCPU::POP_reg16(const X86::Instruction&) { TODO(); }
  338. void SoftCPU::POP_reg32(const X86::Instruction&) { TODO(); }
  339. void SoftCPU::PUSHA(const X86::Instruction&) { TODO(); }
  340. void SoftCPU::PUSHAD(const X86::Instruction&) { TODO(); }
  341. void SoftCPU::PUSHF(const X86::Instruction&) { TODO(); }
  342. void SoftCPU::PUSHFD(const X86::Instruction&) { TODO(); }
  343. void SoftCPU::PUSH_CS(const X86::Instruction&) { TODO(); }
  344. void SoftCPU::PUSH_DS(const X86::Instruction&) { TODO(); }
  345. void SoftCPU::PUSH_ES(const X86::Instruction&) { TODO(); }
  346. void SoftCPU::PUSH_FS(const X86::Instruction&) { TODO(); }
  347. void SoftCPU::PUSH_GS(const X86::Instruction&) { TODO(); }
  348. void SoftCPU::PUSH_RM16(const X86::Instruction&) { TODO(); }
  349. void SoftCPU::PUSH_RM32(const X86::Instruction&) { TODO(); }
  350. void SoftCPU::PUSH_SP_8086_80186(const X86::Instruction&) { TODO(); }
  351. void SoftCPU::PUSH_SS(const X86::Instruction&) { TODO(); }
  352. void SoftCPU::PUSH_imm16(const X86::Instruction&) { TODO(); }
  353. void SoftCPU::PUSH_imm32(const X86::Instruction&) { TODO(); }
  354. void SoftCPU::PUSH_imm8(const X86::Instruction&) { TODO(); }
  355. void SoftCPU::PUSH_reg16(const X86::Instruction&) { TODO(); }
  356. void SoftCPU::PUSH_reg32(const X86::Instruction&) { TODO(); }
  357. void SoftCPU::RCL_RM16_1(const X86::Instruction&) { TODO(); }
  358. void SoftCPU::RCL_RM16_CL(const X86::Instruction&) { TODO(); }
  359. void SoftCPU::RCL_RM16_imm8(const X86::Instruction&) { TODO(); }
  360. void SoftCPU::RCL_RM32_1(const X86::Instruction&) { TODO(); }
  361. void SoftCPU::RCL_RM32_CL(const X86::Instruction&) { TODO(); }
  362. void SoftCPU::RCL_RM32_imm8(const X86::Instruction&) { TODO(); }
  363. void SoftCPU::RCL_RM8_1(const X86::Instruction&) { TODO(); }
  364. void SoftCPU::RCL_RM8_CL(const X86::Instruction&) { TODO(); }
  365. void SoftCPU::RCL_RM8_imm8(const X86::Instruction&) { TODO(); }
  366. void SoftCPU::RCR_RM16_1(const X86::Instruction&) { TODO(); }
  367. void SoftCPU::RCR_RM16_CL(const X86::Instruction&) { TODO(); }
  368. void SoftCPU::RCR_RM16_imm8(const X86::Instruction&) { TODO(); }
  369. void SoftCPU::RCR_RM32_1(const X86::Instruction&) { TODO(); }
  370. void SoftCPU::RCR_RM32_CL(const X86::Instruction&) { TODO(); }
  371. void SoftCPU::RCR_RM32_imm8(const X86::Instruction&) { TODO(); }
  372. void SoftCPU::RCR_RM8_1(const X86::Instruction&) { TODO(); }
  373. void SoftCPU::RCR_RM8_CL(const X86::Instruction&) { TODO(); }
  374. void SoftCPU::RCR_RM8_imm8(const X86::Instruction&) { TODO(); }
  375. void SoftCPU::RDTSC(const X86::Instruction&) { TODO(); }
  376. void SoftCPU::RET(const X86::Instruction&) { TODO(); }
  377. void SoftCPU::RETF(const X86::Instruction&) { TODO(); }
  378. void SoftCPU::RETF_imm16(const X86::Instruction&) { TODO(); }
  379. void SoftCPU::RET_imm16(const X86::Instruction&) { TODO(); }
  380. void SoftCPU::ROL_RM16_1(const X86::Instruction&) { TODO(); }
  381. void SoftCPU::ROL_RM16_CL(const X86::Instruction&) { TODO(); }
  382. void SoftCPU::ROL_RM16_imm8(const X86::Instruction&) { TODO(); }
  383. void SoftCPU::ROL_RM32_1(const X86::Instruction&) { TODO(); }
  384. void SoftCPU::ROL_RM32_CL(const X86::Instruction&) { TODO(); }
  385. void SoftCPU::ROL_RM32_imm8(const X86::Instruction&) { TODO(); }
  386. void SoftCPU::ROL_RM8_1(const X86::Instruction&) { TODO(); }
  387. void SoftCPU::ROL_RM8_CL(const X86::Instruction&) { TODO(); }
  388. void SoftCPU::ROL_RM8_imm8(const X86::Instruction&) { TODO(); }
  389. void SoftCPU::ROR_RM16_1(const X86::Instruction&) { TODO(); }
  390. void SoftCPU::ROR_RM16_CL(const X86::Instruction&) { TODO(); }
  391. void SoftCPU::ROR_RM16_imm8(const X86::Instruction&) { TODO(); }
  392. void SoftCPU::ROR_RM32_1(const X86::Instruction&) { TODO(); }
  393. void SoftCPU::ROR_RM32_CL(const X86::Instruction&) { TODO(); }
  394. void SoftCPU::ROR_RM32_imm8(const X86::Instruction&) { TODO(); }
  395. void SoftCPU::ROR_RM8_1(const X86::Instruction&) { TODO(); }
  396. void SoftCPU::ROR_RM8_CL(const X86::Instruction&) { TODO(); }
  397. void SoftCPU::ROR_RM8_imm8(const X86::Instruction&) { TODO(); }
  398. void SoftCPU::SAHF(const X86::Instruction&) { TODO(); }
  399. void SoftCPU::SALC(const X86::Instruction&) { TODO(); }
  400. void SoftCPU::SAR_RM16_1(const X86::Instruction&) { TODO(); }
  401. void SoftCPU::SAR_RM16_CL(const X86::Instruction&) { TODO(); }
  402. void SoftCPU::SAR_RM16_imm8(const X86::Instruction&) { TODO(); }
  403. void SoftCPU::SAR_RM32_1(const X86::Instruction&) { TODO(); }
  404. void SoftCPU::SAR_RM32_CL(const X86::Instruction&) { TODO(); }
  405. void SoftCPU::SAR_RM32_imm8(const X86::Instruction&) { TODO(); }
  406. void SoftCPU::SAR_RM8_1(const X86::Instruction&) { TODO(); }
  407. void SoftCPU::SAR_RM8_CL(const X86::Instruction&) { TODO(); }
  408. void SoftCPU::SAR_RM8_imm8(const X86::Instruction&) { TODO(); }
  409. void SoftCPU::SBB_AL_imm8(const X86::Instruction&) { TODO(); }
  410. void SoftCPU::SBB_AX_imm16(const X86::Instruction&) { TODO(); }
  411. void SoftCPU::SBB_EAX_imm32(const X86::Instruction&) { TODO(); }
  412. void SoftCPU::SBB_RM16_imm16(const X86::Instruction&) { TODO(); }
  413. void SoftCPU::SBB_RM16_imm8(const X86::Instruction&) { TODO(); }
  414. void SoftCPU::SBB_RM16_reg16(const X86::Instruction&) { TODO(); }
  415. void SoftCPU::SBB_RM32_imm32(const X86::Instruction&) { TODO(); }
  416. void SoftCPU::SBB_RM32_imm8(const X86::Instruction&) { TODO(); }
  417. void SoftCPU::SBB_RM32_reg32(const X86::Instruction&) { TODO(); }
  418. void SoftCPU::SBB_RM8_imm8(const X86::Instruction&) { TODO(); }
  419. void SoftCPU::SBB_RM8_reg8(const X86::Instruction&) { TODO(); }
  420. void SoftCPU::SBB_reg16_RM16(const X86::Instruction&) { TODO(); }
  421. void SoftCPU::SBB_reg32_RM32(const X86::Instruction&) { TODO(); }
  422. void SoftCPU::SBB_reg8_RM8(const X86::Instruction&) { TODO(); }
  423. void SoftCPU::SCASB(const X86::Instruction&) { TODO(); }
  424. void SoftCPU::SCASD(const X86::Instruction&) { TODO(); }
  425. void SoftCPU::SCASW(const X86::Instruction&) { TODO(); }
  426. void SoftCPU::SETcc_RM8(const X86::Instruction&) { TODO(); }
  427. void SoftCPU::SGDT(const X86::Instruction&) { TODO(); }
  428. void SoftCPU::SHLD_RM16_reg16_CL(const X86::Instruction&) { TODO(); }
  429. void SoftCPU::SHLD_RM16_reg16_imm8(const X86::Instruction&) { TODO(); }
  430. void SoftCPU::SHLD_RM32_reg32_CL(const X86::Instruction&) { TODO(); }
  431. void SoftCPU::SHLD_RM32_reg32_imm8(const X86::Instruction&) { TODO(); }
  432. void SoftCPU::SHL_RM16_1(const X86::Instruction&) { TODO(); }
  433. void SoftCPU::SHL_RM16_CL(const X86::Instruction&) { TODO(); }
  434. void SoftCPU::SHL_RM16_imm8(const X86::Instruction&) { TODO(); }
  435. void SoftCPU::SHL_RM32_1(const X86::Instruction&) { TODO(); }
  436. void SoftCPU::SHL_RM32_CL(const X86::Instruction&) { TODO(); }
  437. void SoftCPU::SHL_RM32_imm8(const X86::Instruction&) { TODO(); }
  438. void SoftCPU::SHL_RM8_1(const X86::Instruction&) { TODO(); }
  439. void SoftCPU::SHL_RM8_CL(const X86::Instruction&) { TODO(); }
  440. void SoftCPU::SHL_RM8_imm8(const X86::Instruction&) { TODO(); }
  441. void SoftCPU::SHRD_RM16_reg16_CL(const X86::Instruction&) { TODO(); }
  442. void SoftCPU::SHRD_RM16_reg16_imm8(const X86::Instruction&) { TODO(); }
  443. void SoftCPU::SHRD_RM32_reg32_CL(const X86::Instruction&) { TODO(); }
  444. void SoftCPU::SHRD_RM32_reg32_imm8(const X86::Instruction&) { TODO(); }
  445. void SoftCPU::SHR_RM16_1(const X86::Instruction&) { TODO(); }
  446. void SoftCPU::SHR_RM16_CL(const X86::Instruction&) { TODO(); }
  447. void SoftCPU::SHR_RM16_imm8(const X86::Instruction&) { TODO(); }
  448. void SoftCPU::SHR_RM32_1(const X86::Instruction&) { TODO(); }
  449. void SoftCPU::SHR_RM32_CL(const X86::Instruction&) { TODO(); }
  450. void SoftCPU::SHR_RM32_imm8(const X86::Instruction&) { TODO(); }
  451. void SoftCPU::SHR_RM8_1(const X86::Instruction&) { TODO(); }
  452. void SoftCPU::SHR_RM8_CL(const X86::Instruction&) { TODO(); }
  453. void SoftCPU::SHR_RM8_imm8(const X86::Instruction&) { TODO(); }
  454. void SoftCPU::SIDT(const X86::Instruction&) { TODO(); }
  455. void SoftCPU::SLDT_RM16(const X86::Instruction&) { TODO(); }
  456. void SoftCPU::SMSW_RM16(const X86::Instruction&) { TODO(); }
  457. void SoftCPU::STC(const X86::Instruction&) { TODO(); }
  458. void SoftCPU::STD(const X86::Instruction&) { TODO(); }
  459. void SoftCPU::STI(const X86::Instruction&) { TODO(); }
  460. void SoftCPU::STOSB(const X86::Instruction&) { TODO(); }
  461. void SoftCPU::STOSD(const X86::Instruction&) { TODO(); }
  462. void SoftCPU::STOSW(const X86::Instruction&) { TODO(); }
  463. void SoftCPU::STR_RM16(const X86::Instruction&) { TODO(); }
  464. void SoftCPU::SUB_AL_imm8(const X86::Instruction&) { TODO(); }
  465. void SoftCPU::SUB_AX_imm16(const X86::Instruction&) { TODO(); }
  466. void SoftCPU::SUB_EAX_imm32(const X86::Instruction&) { TODO(); }
  467. void SoftCPU::SUB_RM16_imm16(const X86::Instruction&) { TODO(); }
  468. void SoftCPU::SUB_RM16_imm8(const X86::Instruction&) { TODO(); }
  469. void SoftCPU::SUB_RM16_reg16(const X86::Instruction&) { TODO(); }
  470. void SoftCPU::SUB_RM32_imm32(const X86::Instruction&) { TODO(); }
  471. void SoftCPU::SUB_RM32_imm8(const X86::Instruction&) { TODO(); }
  472. void SoftCPU::SUB_RM32_reg32(const X86::Instruction&) { TODO(); }
  473. void SoftCPU::SUB_RM8_imm8(const X86::Instruction&) { TODO(); }
  474. void SoftCPU::SUB_RM8_reg8(const X86::Instruction&) { TODO(); }
  475. void SoftCPU::SUB_reg16_RM16(const X86::Instruction&) { TODO(); }
  476. void SoftCPU::SUB_reg32_RM32(const X86::Instruction&) { TODO(); }
  477. void SoftCPU::SUB_reg8_RM8(const X86::Instruction&) { TODO(); }
  478. void SoftCPU::TEST_AL_imm8(const X86::Instruction&) { TODO(); }
  479. void SoftCPU::TEST_AX_imm16(const X86::Instruction&) { TODO(); }
  480. void SoftCPU::TEST_EAX_imm32(const X86::Instruction&) { TODO(); }
  481. void SoftCPU::TEST_RM16_imm16(const X86::Instruction&) { TODO(); }
  482. void SoftCPU::TEST_RM16_reg16(const X86::Instruction&) { TODO(); }
  483. void SoftCPU::TEST_RM32_imm32(const X86::Instruction&) { TODO(); }
  484. void SoftCPU::TEST_RM32_reg32(const X86::Instruction&) { TODO(); }
  485. void SoftCPU::TEST_RM8_imm8(const X86::Instruction&) { TODO(); }
  486. void SoftCPU::TEST_RM8_reg8(const X86::Instruction&) { TODO(); }
  487. void SoftCPU::UD0(const X86::Instruction&) { TODO(); }
  488. void SoftCPU::UD1(const X86::Instruction&) { TODO(); }
  489. void SoftCPU::UD2(const X86::Instruction&) { TODO(); }
  490. void SoftCPU::VERR_RM16(const X86::Instruction&) { TODO(); }
  491. void SoftCPU::VERW_RM16(const X86::Instruction&) { TODO(); }
  492. void SoftCPU::WAIT(const X86::Instruction&) { TODO(); }
  493. void SoftCPU::WBINVD(const X86::Instruction&) { TODO(); }
  494. void SoftCPU::XADD_RM16_reg16(const X86::Instruction&) { TODO(); }
  495. void SoftCPU::XADD_RM32_reg32(const X86::Instruction&) { TODO(); }
  496. void SoftCPU::XADD_RM8_reg8(const X86::Instruction&) { TODO(); }
  497. void SoftCPU::XCHG_AX_reg16(const X86::Instruction&) { TODO(); }
  498. void SoftCPU::XCHG_EAX_reg32(const X86::Instruction&) { TODO(); }
  499. void SoftCPU::XCHG_reg16_RM16(const X86::Instruction&) { TODO(); }
  500. void SoftCPU::XCHG_reg32_RM32(const X86::Instruction&) { TODO(); }
  501. void SoftCPU::XCHG_reg8_RM8(const X86::Instruction&) { TODO(); }
  502. void SoftCPU::XLAT(const X86::Instruction&) { TODO(); }
  503. void SoftCPU::XOR_AL_imm8(const X86::Instruction&) { TODO(); }
  504. void SoftCPU::XOR_AX_imm16(const X86::Instruction&) { TODO(); }
  505. void SoftCPU::XOR_EAX_imm32(const X86::Instruction&) { TODO(); }
  506. void SoftCPU::XOR_RM16_imm16(const X86::Instruction&) { TODO(); }
  507. void SoftCPU::XOR_RM16_imm8(const X86::Instruction&) { TODO(); }
  508. void SoftCPU::XOR_RM16_reg16(const X86::Instruction&) { TODO(); }
  509. void SoftCPU::XOR_RM32_imm32(const X86::Instruction&) { TODO(); }
  510. void SoftCPU::XOR_RM32_imm8(const X86::Instruction&) { TODO(); }
  511. void SoftCPU::XOR_RM32_reg32(const X86::Instruction& insn)
  512. {
  513. ASSERT(insn.modrm().is_register());
  514. auto& dest = *m_reg32_table[insn.modrm().register_index()];
  515. auto src = *m_reg32_table[insn.register_index()];
  516. dest ^= src;
  517. set_cf(false);
  518. set_of(false);
  519. set_zf(dest == 0);
  520. set_sf(dest & 0x80000000);
  521. // FIXME: set_pf
  522. }
  523. void SoftCPU::XOR_RM8_imm8(const X86::Instruction&) { TODO(); }
  524. void SoftCPU::XOR_RM8_reg8(const X86::Instruction&) { TODO(); }
  525. void SoftCPU::XOR_reg16_RM16(const X86::Instruction&) { TODO(); }
  526. void SoftCPU::XOR_reg32_RM32(const X86::Instruction&) { TODO(); }
  527. void SoftCPU::XOR_reg8_RM8(const X86::Instruction&) { TODO(); }
  528. void SoftCPU::MOVQ_mm1_mm2m64(const X86::Instruction&) { TODO(); }
  529. void SoftCPU::EMMS(const X86::Instruction&) { TODO(); }
  530. void SoftCPU::MOVQ_mm1_m64_mm2(const X86::Instruction&) { TODO(); }
  531. void SoftCPU::wrap_0xC0(const X86::Instruction&) { TODO(); }
  532. void SoftCPU::wrap_0xC1_16(const X86::Instruction&) { TODO(); }
  533. void SoftCPU::wrap_0xC1_32(const X86::Instruction&) { TODO(); }
  534. void SoftCPU::wrap_0xD0(const X86::Instruction&) { TODO(); }
  535. void SoftCPU::wrap_0xD1_16(const X86::Instruction&) { TODO(); }
  536. void SoftCPU::wrap_0xD1_32(const X86::Instruction&) { TODO(); }
  537. void SoftCPU::wrap_0xD2(const X86::Instruction&) { TODO(); }
  538. void SoftCPU::wrap_0xD3_16(const X86::Instruction&) { TODO(); }
  539. void SoftCPU::wrap_0xD3_32(const X86::Instruction&) { TODO(); }
  540. }