Peter Maydell afa4f6653d bswap: Add new stn_*_p() and ldn_*_p() memory access functions
There's a common pattern in QEMU where a function needs to perform
a data load or store of an N byte integer in a particular endianness.
At the moment this is handled by doing a switch() on the size and
calling the appropriate ld*_p or st*_p function for each size.

Provide a new family of functions ldn_*_p() and stn_*_p() which
take the size as an argument and do the switch() themselves.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20180611171007.4165-2-peter.maydell@linaro.org
2018-06-15 15:23:34 +01:00
..
2017-09-22 14:11:25 +02:00
2017-07-24 12:42:55 +01:00
2016-06-07 18:19:23 +03:00
2017-10-16 20:57:13 +03:00
2017-12-18 10:54:13 -05:00
2016-10-26 08:29:01 -07:00
2017-09-05 22:34:40 +02:00
2018-05-23 17:33:58 +03:00
2018-05-30 13:31:01 +02:00
2018-03-12 11:18:26 +01:00
2016-06-16 18:39:03 +02:00
2017-12-18 17:07:02 +03:00
2018-03-27 13:05:28 +01:00
2018-01-16 14:54:50 +01:00
2017-06-16 07:55:00 +08:00
2018-02-08 09:22:03 +08:00
2016-02-23 12:43:05 +00:00
2016-09-15 15:32:22 +03:00
2017-12-20 22:01:24 +08:00
2018-02-08 09:22:03 +08:00
2017-01-24 23:26:52 +03:00