qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v1 1/1] exec: Fix watchpoint implementation


From: Meador Inge
Subject: [Qemu-devel] [PATCH v1 1/1] exec: Fix watchpoint implementation
Date: Fri, 17 Feb 2012 10:23:01 -0600

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 <address@hidden>
---
 exec.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/exec.c b/exec.c
index b81677a..fe8b2d1 100644
--- a/exec.c
+++ b/exec.c
@@ -3289,9 +3289,9 @@ 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: return stb_phys(addr, val);
+    case 2: return stw_phys(addr, val);
+    case 4: return stl_phys(addr, val);
     default: abort();
     }
 }
-- 
1.7.7.6




reply via email to

[Prev in Thread] Current Thread [Next in Thread]