Philippe Mathieu-Daudé c9e0b9a59c hw/char/goldfish: Use DMA memory API
Rather than using address_space_rw(..., 0 or 1),
use the simpler DMA memory API which expand to
the same code. This allows removing a cast on
the 'buf' variable which is really const. Since
'buf' is only used in the CMD_READ_BUFFER case,
we can reduce its scope.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-Id: <20240723181850.46000-1-philmd@linaro.org>
2024-07-23 22:34:33 +02:00
..
2024-07-21 07:46:38 +02:00
2024-05-03 15:47:47 +02:00
2024-07-21 07:46:38 +02:00
2024-05-03 15:47:47 +02:00
2024-07-23 22:34:33 +02:00
2024-05-03 15:47:47 +02:00
2024-07-23 20:30:36 +02:00
2023-12-29 11:17:30 +11:00
2023-12-29 11:17:30 +11:00
2024-07-22 14:43:17 +02:00
2024-07-01 12:48:55 +01:00
2024-04-25 09:43:29 -07:00
2024-07-23 20:30:36 +02:00
2024-07-03 20:54:17 -07:00
2024-05-03 15:47:48 +02:00
2024-05-06 10:19:56 -07:00
2024-06-16 21:08:54 +02:00
2024-05-10 15:45:15 +02:00