X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=hw%2Fpl011.c;h=94ed6994d739b612d91f1660d9c3cf9314697202;hb=cd346349b45ef056f138a184f660b8c34c3213cc;hp=149a85e5404d62e9974b7ea28456e7aa133b61d3;hpb=aa1f17c18d3778b10a93b858c10c075ee023487a;p=qemu diff --git a/hw/pl011.c b/hw/pl011.c index 149a85e..94ed699 100644 --- a/hw/pl011.c +++ b/hw/pl011.c @@ -1,4 +1,4 @@ -/* +/* * Arm PrimeCell PL011 UART * * Copyright (c) 2006 CodeSourcery. @@ -44,7 +44,7 @@ static const unsigned char pl011_id[] = static void pl011_update(pl011_state *s) { uint32_t flags; - + flags = s->int_level & s->int_enabled; qemu_set_irq(s->irq, flags != 0); } @@ -240,7 +240,7 @@ void pl011_init(uint32_t base, qemu_irq irq, s->ifl = 0x12; s->cr = 0x300; s->flags = 0x90; - if (chr){ + if (chr){ qemu_chr_add_handlers(chr, pl011_can_receive, pl011_receive, pl011_event, s); }