Received: from eggs.gnu.org ([140.186.70.92]:41614) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RyRDU-0001PX-Oh for qemu-devel@nongnu.org; Fri, 17 Feb 2012 12:03:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RyRDO-000561-MW for qemu-devel@nongnu.org; Fri, 17 Feb 2012 12:03:28 -0500 Received: from relay1.mentorg.com ([192.94.38.131]:63390) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RyRDO-00055w-EP for qemu-devel@nongnu.org; Fri, 17 Feb 2012 12:03:22 -0500 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1RyRDM-0004P9-NF from meador_inge@mentor.com for qemu-devel@nongnu.org; Fri, 17 Feb 2012 09:03:20 -0800 From: Meador Inge Date: Fri, 17 Feb 2012 11:03:18 -0600 Message-ID: <1329498198-6009-1-git-send-email-meadori@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH v2 1/1] exec: Fix watchpoint implementation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Fix a bug introduced by commit 1ec9b909ff207a44d5ef2609cb4a2e3d449d485f where 'watch_mem_write' was modified to fall-through to 'abort' on every input. Signed-off-by: Meador Inge --- * Changes since v1: - 'break' out of switch statement instead of 'return'. exec.c | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/exec.c b/exec.c index b81677a..f105b43 100644 --- a/exec.c +++ b/exec.c @@ -3289,9 +3289,15 @@ static void watch_mem_write(void *opaque, target_phys_addr_t addr, { check_watchpoint(addr & ~TARGET_PAGE_MASK, ~(size - 1), BP_MEM_WRITE); switch (size) { - case 1: stb_phys(addr, val); - case 2: stw_phys(addr, val); - case 4: stl_phys(addr, val); + case 1: + stb_phys(addr, val); + break; + case 2: + stw_phys(addr, val); + break; + case 4: + stl_phys(addr, val); + break; default: abort(); } } -- 1.7.7.6