From: Max Filippov Date: Sat, 28 Jan 2012 20:01:40 +0000 (+0400) Subject: exec: add missing breaks to the watch_mem_write X-Git-Tag: v1.1-rc0~286^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=673641504780300be2f0553b76bee34e3d643e57;p=thirdparty%2Fqemu.git exec: add missing breaks to the watch_mem_write Signed-off-by: Max Filippov Reviewed-by: Andreas Färber Reviewed-by: Meador Inge --- diff --git a/exec.c b/exec.c index b81677ade9c..f105b43fd25 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(); } }