simplify code by replacing mem_map_start()/mem_map_finish() in uc.c with mem_map()

This commit is contained in:
Nguyen Anh Quynh
2015-11-28 18:26:08 +08:00
parent 4a759cebb5
commit f4882ae1a2
2 changed files with 7 additions and 22 deletions

View File

@ -250,7 +250,7 @@ static void test_i386_map_ptr(void)
}
// malloc 2MB memory for this emulation
mem = malloc(2 * 1024 * 1024);
mem = calloc(1, 2 * 1024 * 1024);
if (mem == NULL) {
printf("Failed to malloc()\n");
return;