static void mcf_uart_do_tx(mcf_uart_state *s)

{

    if (s->tx_enabled && (s->sr & MCF_UART_TxEMP) == 0) {

        if (s->chr)

            qemu_chr_fe_write(s->chr, (unsigned char *)&s->tb, 1);

        s->sr |= MCF_UART_TxEMP;

    }

    if (s->tx_enabled) {

        s->sr |= MCF_UART_TxRDY;

    } else {

        s->sr &= ~MCF_UART_TxRDY;

    }

}

static void mcf_uart_do_tx(mcf_uart_state *s)

{

    if (s->tx_enabled && (s->sr & MCF_UART_TxEMP) == 0) {

        if (s->chr)

            qemu_chr_fe_write(s->chr, (unsigned char *)&s->tb, 1);

        s->sr |= MCF_UART_TxEMP;

    }

    if (s->tx_enabled) {

        s->sr |= MCF_UART_TxRDY;

    } else {

        s->sr &= ~MCF_UART_TxRDY;

    }

}

            qemu_chr_fe_write(s->chr, (unsigned char *)&s->tb, 1);
static void FUNC_0(mcf_uart_state *VAR_0)

{

    if (VAR_0->tx_enabled && (VAR_0->sr & MCF_UART_TxEMP) == 0) {

        if (VAR_0->chr)

            qemu_chr_fe_write(VAR_0->chr, (unsigned char *)&VAR_0->tb, 1);

        VAR_0->sr |= MCF_UART_TxEMP;

    }

    if (VAR_0->tx_enabled) {

        VAR_0->sr |= MCF_UART_TxRDY;

    } else {

        VAR_0->sr &= ~MCF_UART_TxRDY;

    }

}

static void FUNC_0(mcf_uart_state *VAR_0)
{ if (VAR_0->tx_enabled && (VAR_0->sr & MCF_UART_TxEMP) == 0) { if (VAR_0->chr)
qemu_chr_fe_write(VAR_0->chr, (unsigned char *)&VAR_0->tb, 1); VAR_0->sr |= MCF_UART_TxEMP; } if (VAR_0->tx_enabled) { VAR_0->sr |= MCF_UART_TxRDY; } else { VAR_0->sr &= ~MCF_UART_TxRDY; } }