From d2ba79abdd35e246e3548eeb340a7967cc21ae69 Mon Sep 17 00:00:00 2001 From: Stanislav Shwartsman Date: Sat, 31 May 2008 21:17:02 +0000 Subject: [PATCH] Removed PANIC in DqRq function --- bochs/cpu/proc_ctrl.cc | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/bochs/cpu/proc_ctrl.cc b/bochs/cpu/proc_ctrl.cc index 389f8d9c8..cf13bcea3 100644 --- a/bochs/cpu/proc_ctrl.cc +++ b/bochs/cpu/proc_ctrl.cc @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: proc_ctrl.cc,v 1.235 2008-05-31 09:26:28 sshwarts Exp $ +// $Id: proc_ctrl.cc,v 1.236 2008-05-31 21:17:02 sshwarts Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (C) 2001 MandrakeSoft S.A. @@ -462,15 +462,6 @@ void BX_CPP_AttrRegparmN(1) BX_CPU_C::MOV_DqRq(bxInstruction_c *i) BX_PANIC(("MOV_DqRq: write of %08x:%08x contains IO breakpoint", (Bit32u)(val_64 >> 32), (Bit32u)(val_64 & 0xFFFFFFFF))); } - if ((((val_64>>18) & 3)==2) || - (((val_64>>22) & 3)==2) || - (((val_64>>26) & 3)==2) || - (((val_64>>30) & 3)==2)) - { - // LEN0..3 contains undefined length specifier (10b) - BX_PANIC(("MOV_DqRq: write of %08x:%08x contains undefined LENx", - (Bit32u)(val_64 >> 32), (Bit32u)(val_64 & 0xFFFFFFFF))); - } if (((((val_64>>16) & 3)==0) && (((val_64>>18) & 3)!=0)) || ((((val_64>>20) & 3)==0) && (((val_64>>22) & 3)!=0)) || ((((val_64>>24) & 3)==0) && (((val_64>>26) & 3)!=0)) || @@ -2536,8 +2527,8 @@ Bit32u BX_CPU_C::hwdebug_compare(bx_address laddr_0, unsigned size, bx_bool ibpoint_found = 0; bx_address laddr_n = laddr_0 + (size - 1); static bx_address alignment_mask[4] = - // 00b=1 01b=2 10b=undef 11b=4 - { 0x0, 0x1, 0x7, 0x3 }; + // 00b=1 01b=2 10b=undef(8) 11b=4 + { 0x0, 0x1, 0x7, 0x3 }; Bit32u len0 = (dr7>>18) & 3; Bit32u len1 = (dr7>>22) & 3;