Commit b2a7081acb46b0cdcbec0346672d86fc77ebfeb5

Authored by pbrook
1 parent 17e2377a

Use qemu_mallocz.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4711 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 2 deletions
... ... @@ -721,10 +721,9 @@ static void build_page_bitmap(PageDesc *p)
721 721 int n, tb_start, tb_end;
722 722 TranslationBlock *tb;
723 723  
724   - p->code_bitmap = qemu_malloc(TARGET_PAGE_SIZE / 8);
  724 + p->code_bitmap = qemu_mallocz(TARGET_PAGE_SIZE / 8);
725 725 if (!p->code_bitmap)
726 726 return;
727   - memset(p->code_bitmap, 0, TARGET_PAGE_SIZE / 8);
728 727  
729 728 tb = p->first_tb;
730 729 while (tb != NULL) {
... ...