]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
exec: add missing breaks to the watch_mem_write
authorMax Filippov <jcmvbkbc@gmail.com>
Sat, 28 Jan 2012 20:01:40 +0000 (00:01 +0400)
committerMax Filippov <jcmvbkbc@gmail.com>
Mon, 20 Feb 2012 16:07:02 +0000 (20:07 +0400)
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: Meador Inge <meadori@codesourcery.com>
exec.c

diff --git a/exec.c b/exec.c
index b81677ade9c7c67add6c4adbf4ceeb3d0d5ffe26..f105b43fd253f8c10463f2bf49c76e743b6df70e 100644 (file)
--- 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();
     }
 }