From 58e1f03f12090d630f51e43a89dfa4c78463eca9 Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Wed, 25 Jul 2018 17:04:35 +0800 Subject: [PATCH] Revert "x86: fix #968" This reverts commit 91033dd0f039185635df8b3209d81048fd5fb688. --- uc.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/uc.c b/uc.c index 3c6f87ff..ef5ef23c 100644 --- a/uc.c +++ b/uc.c @@ -548,15 +548,9 @@ uc_err uc_emu_start(uc_engine* uc, uint64_t begin, uint64_t until, uint64_t time switch(uc->mode) { default: break; - case UC_MODE_16: { - uint16_t cs; - uint64_t ip; - - uc_reg_read(uc, UC_X86_REG_CS, &cs); - ip = begin - cs; - uc_reg_write(uc, UC_X86_REG_IP, &ip); + case UC_MODE_16: + uc_reg_write(uc, UC_X86_REG_IP, &begin); break; - } case UC_MODE_32: uc_reg_write(uc, UC_X86_REG_EIP, &begin); break;