]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/char/goldfish: Use DMA memory API
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 23 Jul 2024 18:14:28 +0000 (20:14 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 23 Jul 2024 20:34:33 +0000 (22:34 +0200)
commitc9e0b9a59ce6499c32affad6415560b1ad1d708f
treeeb3577894631fa5d15d4b6e177225a8673fa5733
parent2f28f28e74d9e8861701e5597b314fa85965ecd4
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>
hw/char/goldfish_tty.c