Home
last modified time | relevance | path

Searched hist:"9 bc5a7193fb422ee53187601eba577ee5d195522" (Results 1 – 2 of 2) sorted by relevance

/openbmc/qemu/util/
H A Doslib-posix.c9bc5a7193fb422ee53187601eba577ee5d195522 Thu Jan 04 11:39:36 CST 2018 Andreas Gustafsson <gson@gson.org> oslib-posix: check for posix_memalign in configure script

Check for the presence of posix_memalign() in the configure script,
not using "defined(_POSIX_C_SOURCE) && !defined(__sun__)". This
lets qemu use posix_memalign() on NetBSD versions that have it,
instead of falling back to valloc() which is wasteful when the
required alignment is smaller than a page.

Signed-off-by: Andreas Gustafsson <gson@gson.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Kamil Rytarowski <n54@gmx.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
/openbmc/qemu/
H A Dconfigure9bc5a7193fb422ee53187601eba577ee5d195522 Thu Jan 04 11:39:36 CST 2018 Andreas Gustafsson <gson@gson.org> oslib-posix: check for posix_memalign in configure script

Check for the presence of posix_memalign() in the configure script,
not using "defined(_POSIX_C_SOURCE) && !defined(__sun__)". This
lets qemu use posix_memalign() on NetBSD versions that have it,
instead of falling back to valloc() which is wasteful when the
required alignment is smaller than a page.

Signed-off-by: Andreas Gustafsson <gson@gson.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Kamil Rytarowski <n54@gmx.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>