Philippe Mathieu-Daudé 29daa894b6 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>
2020-12-10 12:15:10 -05:00
..
2020-08-21 06:30:32 -04:00
2020-12-10 12:15:04 -05:00
2020-12-10 12:15:07 -05:00
2020-09-09 09:27:09 -04:00
2020-12-10 12:15:10 -05:00
2020-12-10 12:15:07 -05:00
2020-12-10 12:15:07 -05:00
2020-12-10 12:15:07 -05:00
2020-12-10 12:15:08 -05:00
2020-12-10 12:15:08 -05:00
2020-12-10 12:15:05 -05:00
2020-12-10 12:15:08 -05:00
2020-12-10 12:15:08 -05:00
2020-12-10 12:15:08 -05:00
2020-12-10 12:15:09 -05:00
2020-08-21 06:30:25 -04:00
2020-08-21 06:30:33 -04:00
2020-12-08 13:48:57 -05:00
2020-08-27 14:04:55 -04:00
2020-12-10 12:15:09 -05:00
2020-12-10 12:15:09 -05:00
2020-12-10 12:15:06 -05:00
2020-12-10 12:15:09 -05:00
2020-08-21 06:30:25 -04:00
2020-12-10 12:15:06 -05:00
2020-12-10 12:15:08 -05:00
2020-12-10 12:15:06 -05:00
2020-11-15 16:44:18 +01:00
2020-08-21 06:30:33 -04:00
2020-11-20 10:43:41 -05:00
2020-12-10 12:15:10 -05:00
2020-08-21 06:30:33 -04:00
2020-08-21 06:30:33 -04:00