I was reminded of this by the discussion on the list recently of using calloc for qemu_mallocz. I'd vaguely remembered that I already had a patch that did this.
The second patch is a cleanup enabled by Paul's patch: 2e9a5713f0567fffaa3518f495b8d16a2b74f84a which removed PAGE_RESERVED. r~ Richard Henderson (2): Use calloc in qemu_mallocz. linux-user: Use qemu-malloc.c. Makefile.target | 3 ++- linux-user/mmap.c | 52 ---------------------------------------------------- qemu-malloc.c | 8 ++++---- 3 files changed, 6 insertions(+), 57 deletions(-)