aboutsummaryrefslogtreecommitdiff
path: root/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/exec.c b/exec.c
index a90d07646d..4d39eaaf20 100644
--- a/exec.c
+++ b/exec.c
@@ -1312,7 +1312,7 @@ int cpu_watchpoint_insert(CPUState *env, target_ulong addr, target_ulong len,
}
wp = qemu_malloc(sizeof(*wp));
if (!wp)
- return -ENOBUFS;
+ return -ENOMEM;
wp->vaddr = addr;
wp->len_mask = len_mask;
@@ -1397,7 +1397,7 @@ int cpu_breakpoint_insert(CPUState *env, target_ulong pc, int flags,
bp = qemu_malloc(sizeof(*bp));
if (!bp)
- return -ENOBUFS;
+ return -ENOMEM;
bp->pc = pc;
bp->flags = flags;