From 70230049fa6db865d8a36c749ea73400f3bd286e Mon Sep 17 00:00:00 2001 From: Stanislav Shwartsman Date: Tue, 8 Oct 2013 18:40:10 +0000 Subject: [PATCH] opmask_ok support in fetchdecode32.cc --- bochs/cpu/fetchdecode.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bochs/cpu/fetchdecode.cc b/bochs/cpu/fetchdecode.cc index 32f005b4f..881e4ffb9 100644 --- a/bochs/cpu/fetchdecode.cc +++ b/bochs/cpu/fetchdecode.cc @@ -2005,6 +2005,12 @@ decode_done: } } #if BX_SUPPORT_EVEX + if (! (fetchModeMask & BX_FETCH_MODE_OPMASK_OK)) { + if (op_flags & BX_PREPARE_OPMASK) { + if (i->execute1 != &BX_CPU_C::BxError) i->execute1 = &BX_CPU_C::BxNoOpMask; + return(1); + } + } if (! (fetchModeMask & BX_FETCH_MODE_EVEX_OK)) { if (op_flags & BX_PREPARE_EVEX) { if (i->execute1 != &BX_CPU_C::BxError) i->execute1 = &BX_CPU_C::BxNoEVEX;