flatload: fix bss clearing
authorMike Frysinger <vapier@gentoo.org>
Mon, 9 Jul 2012 03:04:57 +0000 (03:04 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 14 Aug 2012 19:26:55 +0000 (20:26 +0100)
commitcd8e407d24657569e0d6e323b2e8c274fafab590
treecd85c9af014cc639e32a851293ed1eefcebf2e09
parentaebf5bc727fa1837b3c5296c5325b560f19ed9ee
flatload: fix bss clearing

The current bss clear logic assumes the target mmap address and host
address are the same.  Use g2h to translate from the target address
space to the host so we can call memset on it.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
linux-user/flatload.c