Peter Maydell 8d9dde9429 cpu-all.h: Don't accidentally sign extend in g2h()
Cast the argument of the g2h() macro to a target_ulong so that
it isn't accidentally sign-extended if it is a signed 32 bit
type and long is a 64 bit type. In particular, this fixes a
bug where it would return the wrong value for 32 bit guests
on 64 bit hosts when passed in one of the arg* values from
do_syscall() [which are all abi_long and thus signed types].
This could result in spurious failure of mlock(), among others.

Reviewed-by: Andreas F=E4rber <afaerber@suse.de>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2012-03-12 14:05:26 -05:00
2012-03-12 14:05:25 -05:00
2012-03-01 12:58:46 +02:00
2012-02-21 10:21:05 +01:00
2012-02-22 17:23:50 -02:00
2012-03-12 14:05:25 -05:00
2012-02-28 22:33:41 +01:00
2012-02-28 22:33:42 +01:00
2012-02-28 22:33:42 +01:00
2012-02-28 22:33:42 +01:00
2012-02-28 22:33:42 +01:00
2012-02-28 22:33:42 +01:00
2012-03-05 19:51:18 +01:00
2012-02-28 22:33:43 +01:00
2012-03-12 14:05:26 -05:00
2012-02-17 09:58:22 -06:00
2012-03-03 18:10:16 +00:00
2012-02-28 22:33:41 +01:00
2012-03-07 13:03:51 +00:00
2012-02-22 13:29:07 +01:00
2012-03-05 17:40:12 +02:00
2012-03-07 12:27:42 +02:00
2012-03-07 12:27:42 +02:00
2012-03-05 17:40:12 +02:00
2012-03-05 17:40:12 +02:00
2012-02-17 08:33:32 -06:00
2012-02-15 09:39:21 -06:00
2012-02-24 13:36:04 -06:00
2012-02-17 08:33:32 -06:00
2012-02-17 08:33:32 -06:00
2012-03-02 11:56:38 +00:00
2012-02-17 12:41:59 +01:00
2012-02-17 08:33:33 -06:00
2012-02-17 08:33:32 -06:00
2012-02-28 22:33:41 +01:00
2012-03-07 12:28:04 +01:00

Read the documentation in qemu-doc.html or on http://wiki.qemu.org

- QEMU team
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%