Use qemu_mallocz.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4711 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
		
							parent
							
								
									17e2377abf
								
							
						
					
					
						commit
						b2a7081acb
					
				
							
								
								
									
										3
									
								
								exec.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								exec.c
									
									
									
									
									
								
							@ -721,10 +721,9 @@ static void build_page_bitmap(PageDesc *p)
 | 
				
			|||||||
    int n, tb_start, tb_end;
 | 
					    int n, tb_start, tb_end;
 | 
				
			||||||
    TranslationBlock *tb;
 | 
					    TranslationBlock *tb;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    p->code_bitmap = qemu_malloc(TARGET_PAGE_SIZE / 8);
 | 
					    p->code_bitmap = qemu_mallocz(TARGET_PAGE_SIZE / 8);
 | 
				
			||||||
    if (!p->code_bitmap)
 | 
					    if (!p->code_bitmap)
 | 
				
			||||||
        return;
 | 
					        return;
 | 
				
			||||||
    memset(p->code_bitmap, 0, TARGET_PAGE_SIZE / 8);
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    tb = p->first_tb;
 | 
					    tb = p->first_tb;
 | 
				
			||||||
    while (tb != NULL) {
 | 
					    while (tb != NULL) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user