qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v2 1/2] hw/exynos4210.c: Access gate_irq by usin


From: Evgeny Voevodin
Subject: Re: [Qemu-devel] [PATCH v2 1/2] hw/exynos4210.c: Access gate_irq by using group size.
Date: Mon, 16 Apr 2012 14:58:33 +0400
User-agent: Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120329 Thunderbird/11.0.1

On 16.04.2012 14:51, Peter Maydell wrote:
On 12 April 2012 09:13, Evgeny Voevodin<address@hidden>  wrote:
New EXYNOS4210_IRQ_GATE_GROUP_SIZE introduced and
EXYNOS4210_IRQ_GATE_NINPUTS changed from 8 to 4, because
having 8 inputs makes an input group of size 4 and access to
second's group first input leads to pass it into third instead of
second output of gate.
I'm afraid I can't make any sense of this commit message :-(

-#define EXYNOS4210_IRQ_GATE_NINPUTS 8
+#define EXYNOS4210_IRQ_GATE_NINPUTS 4
You can't change this without bumping the exynos4210.irq_gate VMState
version, because it's used as the array size there. I think you're
just going to have to merge these two patches into one.

Oh, I see...

+#define EXYNOS4210_IRQ_GATE_GROUP_SIZE (EXYNOS4210_IRQ_GATE_NINPUTS / \
+                                                            EXYNOS4210_NCPUS)
Minor nit, I think putting the line break like this:

#define EXYNOS4210_IRQ_GATE_GROUP_SIZE \
     (EXYNOS4210_IRQ_GATE_NINPUTS / EXYNOS4210_NCPUS)

is more readable.

Sure

-- PMM


Thanks, will merge patches.

--
Kind regards,
Evgeny Voevodin,
Leading Software Engineer,
ASWG, Moscow R&D center, Samsung Electronics
e-mail: address@hidden




reply via email to

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