Richard Henderson
62724cc5eb
linux-user: Use memcpy in get_user/put_user.
...
When host and target have differing alignment rules, using a cast
and direct memory operation can result in SIGBUS. Use memcpy instead,
which the compiler will happily optimize when alignment is satisfied.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
2012-09-21 22:02:15 +02:00
..
2012-08-04 09:37:49 -07:00
2012-06-07 07:17:33 +02:00
2011-07-11 16:12:51 +03:00
2011-07-11 16:12:51 +03:00
2012-03-14 22:20:24 +01:00
2011-07-11 16:12:51 +03:00
2011-07-11 16:12:51 +03:00
2012-02-02 17:51:21 +02:00
2012-02-02 17:51:20 +02:00
2012-07-27 21:13:05 +00:00
2011-07-11 16:12:51 +03:00
2011-07-11 16:12:51 +03:00
2011-07-13 17:11:37 +03:00
2011-10-27 14:43:10 +03:00
2011-07-11 16:12:51 +03:00
2011-04-12 18:48:43 +00:00
2011-12-14 11:09:44 +00:00
2012-06-20 12:13:28 +00:00
2010-02-06 17:19:43 +01:00
2012-08-14 20:26:55 +01:00
2008-12-13 09:32:43 +00:00
2007-10-14 16:27:31 +00:00
2012-08-14 20:26:55 +01:00
2012-08-13 12:45:46 +01:00
2008-05-23 16:06:43 +00:00
2011-11-11 12:49:53 -06:00
2010-10-05 13:53:56 -05:00
2012-09-14 08:21:28 +01:00
2012-06-07 07:17:33 +02:00
2012-08-04 09:37:49 -07:00
2011-10-27 14:42:16 +03:00
2012-09-21 22:02:15 +02:00
2012-08-09 18:34:57 +00:00
2007-12-10 08:24:59 +00:00
2012-08-04 09:37:49 -07:00
2012-08-04 09:37:49 -07:00
2012-08-27 10:17:30 +03:00
2012-08-13 12:45:46 +01:00
2012-08-27 10:17:30 +03:00
2011-02-09 10:33:54 +02:00
2009-07-01 18:24:44 +00:00
2011-10-27 14:42:16 +03:00