qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v11 3/5] hw/intc: add allwinner A10 interrupt co


From: Li Guang
Subject: Re: [Qemu-devel] [PATCH v11 3/5] hw/intc: add allwinner A10 interrupt controller
Date: Fri, 13 Dec 2013 08:43:38 +0800
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.16) Gecko/20120421 Iceape/2.0.11

Peter Maydell wrote:
On 11 December 2013 08:08, liguang<address@hidden>  wrote:
+static void aw_a10_pic_set_irq(void *opaque, int irq, int level)
+{
+    AwA10PICState *s = opaque;
+
+    if (level) {
+        set_bit(irq%32, (void *)&s->irq_pending[irq/32]);
The % and / operators here should have spaces round them.

+    }
+    aw_a10_pic_update(s);
+}
+
+static uint64_t aw_a10_pic_read(void *opaque, hwaddr offset, unsigned size)
+{
+    AwA10PICState *s = opaque;
+    uint8_t index = (offset&  0xc)/4;
Spaces.

will fix,
thanks!

Otherwise
Reviewed-by: Peter Maydell<address@hidden>

-- PMM





reply via email to

[Prev in Thread] Current Thread [Next in Thread]