commit | b2a7081acb46b0cdcbec0346672d86fc77ebfeb5 | [log] [tgz] |
---|---|---|
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | Mon Jun 09 13:57:23 2008 +0000 |
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | Mon Jun 09 13:57:23 2008 +0000 |
tree | 05b8e19f7ae249a8e0a567a6d8e44b0b68803000 | |
parent | 17e2377abf16c3951d7d34521ceade4d7dc31d01 [diff] [blame] |
Use qemu_mallocz. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4711 c046a42c-6fe2-441c-8c8c-71466251a162
diff --git a/exec.c b/exec.c index 18f8f5f..48600e4 100644 --- a/exec.c +++ b/exec.c
@@ -721,10 +721,9 @@ int n, tb_start, tb_end; TranslationBlock *tb; - p->code_bitmap = qemu_malloc(TARGET_PAGE_SIZE / 8); + p->code_bitmap = qemu_mallocz(TARGET_PAGE_SIZE / 8); if (!p->code_bitmap) return; - memset(p->code_bitmap, 0, TARGET_PAGE_SIZE / 8); tb = p->first_tb; while (tb != NULL) {