diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2020-11-20 17:19:33 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-12-10 12:15:10 -0500 |
commit | 29daa894b6c31eae074dcb59a98ff3a309688754 (patch) | |
tree | ff557751e893f24495bc69ca02f43c2d0ce3dc07 /tests | |
parent | b326b6ea7998912d0bb0565ffef34efdfe9016dc (diff) |
hw/char/serial: Clean up unnecessary code
Since commit 5ec3a23e6c8 ("serial: convert PIO to new memory
api read/write") we don't need to worry about accesses bigger
than 8-bit. Use the extract()/deposit() functions to access
the correct part of the 16-bit 'divider' register.
Reported-by: Jonathan D. Belanger <jbelanger1@rochester.rr.com>
Buglink: https://bugs.launchpad.net/qemu/+bug/1904331
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20201120161933.2514089-1-f4bug@amsat.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions