mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
exec: add missing breaks to the watch_mem_write
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Reviewed-by: Andreas Färber <afaerber@suse.de> Reviewed-by: Meador Inge <meadori@codesourcery.com>
This commit is contained in:
parent
35b5c04427
commit
6736415047
1 changed files with 9 additions and 3 deletions
12
exec.c
12
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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue