mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
hw: fix mask for ColdFire UART command register
The "miscellaneous commands" part of the register is 3 bits wide. Spotted by Coverity and confirmed in the datasheet, downloadable from http://cache.freescale.com/files/32bit/doc/ref_manual/MCF5307BUM.pdf (figure 14-6). Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
fa0d653b06
commit
491ffc1f7c
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ static void mcf_uart_do_tx(mcf_uart_state *s)
|
|||
static void mcf_do_command(mcf_uart_state *s, uint8_t cmd)
|
||||
{
|
||||
/* Misc command. */
|
||||
switch ((cmd >> 4) & 3) {
|
||||
switch ((cmd >> 4) & 7) {
|
||||
case 0: /* No-op. */
|
||||
break;
|
||||
case 1: /* Reset mode register pointer. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue