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-01-21 05:17:02 +01: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
2011-11-07 10:57:36 -06:00
…
…
…
2012-01-13 10:55:56 -06:00
…
2012-02-17 09:58:22 -06:00
2011-12-02 10:50:57 +00:00
2011-08-27 15:42:35 +00:00
2011-10-21 18:14:30 +02:00
2011-12-06 11:40:01 -02:00
2011-12-06 11:40:01 -02:00
…
…
…
2012-01-18 10:23:39 -02:00
2011-09-16 08:26:31 -05:00
2012-01-13 10:37:00 +00:00
…
2012-01-12 10:05:37 -06:00
2012-01-12 10:05:37 -06:00
2012-01-12 10:05:37 -06:00
2012-01-12 10:05:38 -06:00
2011-11-07 08:01:15 +00:00
…
2012-02-09 16:17:51 +01:00
…
…
2012-03-03 18:10:16 +00:00
2012-02-28 22:33:41 +01:00
2011-11-01 10:58:08 -05:00
2012-01-10 09:36:43 +01:00
2012-03-07 13:03:51 +00:00
2011-10-31 21:52:17 +01:00
2011-10-31 21:52:17 +01:00
…
2012-02-22 13:29:07 +01:00
2011-09-10 16:57:36 +00:00
…
…
2011-06-07 13:52:10 -05:00
2011-12-02 10:50:57 +00:00
2012-03-05 17:40:12 +02:00
…
2011-12-02 10:50:57 +00:00
2011-08-27 15:42:35 +00:00
2011-08-27 15:42:35 +00:00
…
2011-10-16 13:13:05 +02:00
2011-10-21 18:14:30 +02:00
2012-01-13 10:55:56 -06:00
2011-08-04 15:51:22 +02:00
2012-03-07 12:27:42 +02:00
2012-03-07 12:27:42 +02:00
2011-06-14 03:08:57 +02:00
2011-12-09 11:25:22 +00:00
2011-12-02 10:50:57 +00: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
2011-08-27 15:42:35 +00:00
2012-01-13 10:55:56 -06:00
2012-02-15 09:39:21 -06:00
2012-02-24 13:36:04 -06:00
2011-12-22 11:53:59 +01:00
2011-12-22 11:53:59 +01:00
2012-02-04 11:49:34 +00:00
2012-02-01 16:24:40 -06:00
2012-02-17 08:33:32 -06:00
2012-02-17 08:33:32 -06:00
2011-12-22 11:53:58 +01:00
…
2012-01-13 10:55:56 -06:00
…
2012-01-10 18:23:58 +01:00
…
2012-01-10 18:23:58 +01:00
…
…
2012-02-03 10:41:08 -06:00
2012-03-02 11:56:38 +00:00
2012-02-17 12:41:59 +01:00
2011-10-21 18:14:30 +02:00
2012-02-17 08:33:33 -06:00
2011-12-15 09:20:50 -06:00
2012-02-17 08:33:32 -06:00
2011-12-06 10:07:04 +00:00
…
…
…
…
…
2011-07-21 16:48:13 -03:00
…
…
…
2011-12-11 17:50:43 -06:00
…
…
2011-10-01 09:31:08 +00:00
2011-10-01 09:31:08 +00:00
2011-10-01 09:31:08 +00:00
2012-01-04 13:34:50 +02:00
2011-07-23 11:26:12 -05:00
2011-08-27 15:42:35 +00:00
2011-10-31 21:52:17 +01:00
…
2012-02-28 22:33:41 +01:00
…
2012-03-07 12:28:04 +01:00
…
2011-08-27 15:42:35 +00:00
2011-09-10 16:57:39 +00:00

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

- QEMU team
S
Description
Original Xbox Emulator for Windows, macOS, and Linux (Active Development)
Readme GPL-2.0
705 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 82.3%
C++ 6.9%
Python 3.5%
Dylan 2.7%
Shell 1.5%
Other 2.9%