diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2024-12-04 16:44:42 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-12-19 19:36:38 +0100 |
commit | f65314bdd0c287097f7dd4b002c67ceee9729039 (patch) | |
tree | 4e3551aba5bbc6547d56686078710559951303d2 /rust/qemu-api/src | |
parent | ac096b0bef98a79fafb1254fef121a175c9b73fc (diff) | |
download | qemu-f65314bdd0c287097f7dd4b002c67ceee9729039.zip qemu-f65314bdd0c287097f7dd4b002c67ceee9729039.tar.gz qemu-f65314bdd0c287097f7dd4b002c67ceee9729039.tar.bz2 |
rust: pl011: always use reset() method on registers
For CR, the ugly-ish "0.into()" idiom is already hidden within the
reset method. Do not repeat it.
For FR, standardize on reset() being equivalent to "*self = Self::default()"
and let reset_fifo toggle only the bits that are related to FIFOs. This
commit also reproduces C commit 02b1f7f6192 ("hw/char/pl011: Split RX/TX
path of pl011_reset_fifo()", 2024-09-13).
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'rust/qemu-api/src')
0 files changed, 0 insertions, 0 deletions