projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17e2377
)
Use qemu_mallocz.
author
pbrook
<pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 9 Jun 2008 13:57:23 +0000
(13:57 +0000)
committer
pbrook
<pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 9 Jun 2008 13:57:23 +0000
(13:57 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4711
c046a42c
-6fe2-441c-8c8c-
71466251a162
exec.c
patch
|
blob
|
history
diff --git
a/exec.c
b/exec.c
index 18f8f5f557a14f13503f0494d394d6ad4bb21ee7..48600e49a978556d2bdd1e57cef0faa3d542f6e6 100644
(file)
--- a/
exec.c
+++ b/
exec.c
@@
-721,10
+721,9
@@
static void build_page_bitmap(PageDesc *p)
int n, tb_start, tb_end;
TranslationBlock *tb;
- p->code_bitmap = qemu_malloc(TARGET_PAGE_SIZE / 8);
+ p->code_bitmap = qemu_malloc
z
(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) {