Incorrect MBAR offset for an5206 UART2 output port bit set
PATCH 1/1 Incorrect MBAR offset for an5206 UART2 output port bit set
The MBAR offset for the UART2 output port bit set function on the an5206 board, though unimplemented, is incorrectly defined as 0x1c8. The correct offset used by the hardware for this function is 0x1b8. This typo causes QEMU to crash whenever attempts to access use UART2 are made:
qemu: fatal: Bad MBAR write offset 0x1b8
The following patch resolves this issue.
hw/mcf5206.c +0 -0
@@ -341,7 +341,7 @@ static void m5206_mbar_write(m5206_mbar_state *s,
uint32_t offset,
case 0x170:
s->uivr[0] = value;
break;
- case 0x178: case 0x17c: case 0x1c8: case 0x1bc:
+ case 0x178: case 0x17c: case 0x1b8: case 0x1bc:
/* Not implemented: UART Output port bits. */
break;
case 0x1b0:Quoted 15 lines · Evan Goldenberg
The MBAR offset for the UART2 output port bit set function on the an5206 board, though unimplemented, is incorrectly defined as
0x1c8. The correct offset used by the hardware for this function is0x1b8. This typo causes QEMU to crash whenever attempts to access use UART2 are made:qemu: fatal: Bad MBAR write offset
0x1b8The following patch resolves this issue.
hw/mcf5206.c +0
-0
hw/mcf5206.c static void m5206_mbar_write(m5206_mbar_state *s, · line 342
Quoted 2 lines
hw/mcf5206.c +0
-0@@ -341,7 +341,7 @@ static void m5206_mbar_write(m5206_mbar_state *s, uint32_t offset,
This is whitespace damaged.
Quoted 12 lines
hw/mcf5206.c +1
-1case 0x170 : s->uivr[0 ] = value;break ; -case 0x178 :case 0x17c :case 0x1c8 :case 0x1bc : +case 0x178 :case 0x17c :case 0x1b8 :case 0x1bc :/* Not implemented: UART Output port bits. */ break; case 0x1b0:
Signature · 3 lines
Regards, Anthony Liguori