[PATCH 1/1] target/hexagon: work around unused variable in yyparser

2022-12-31 Thread Zongyuan Li
this building error. FYI: bison patch link https://mail.gnu.org/archive/html/bison-patches/2022-08/msg00006.html Signed-off-by: Zongyuan Li --- target/hexagon/idef-parser/idef-parser.y | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/hexagon/idef-parser/idef-parser.y b/target

Re: [PATCH v5 3/4] hw/intc/exynos4210: replace 'qemu_split_irq' in combiner and gic

2022-04-01 Thread Zongyuan Li
On Fri, Apr 1, 2022 at 9:35 PM Peter Maydell wrote: > > On Thu, 24 Mar 2022 at 18:16, Zongyuan Li wrote: > > > > Signed-off-by: Zongyuan Li > > --- > > hw/arm/exynos4210.c | 26 +++ > > hw/intc/exynos4210_combiner.c | 81

Re: [PATCH v4 3/4] hw/intc/exynos4210: replace 'qemu_split_irq' in combiner and gic

2022-03-24 Thread Zongyuan Li
> > > diff --git a/include/hw/core/split-irq.h b/include/hw/core/split-irq.h > > index ff8852f407..eb485dd7a6 100644 > > --- a/include/hw/core/split-irq.h > > +++ b/include/hw/core/split-irq.h > > @@ -42,9 +42,6 @@ > > > > #define MAX_SPLIT_LINES 16 > > > > - > > -OBJECT_DECLARE_SIMPLE_TYPE(SplitI

[PATCH v5 2/4] hw/arm/stellaris: replace 'qemu_split_irq' with 'TYPE_SPLIT_IRQ'

2022-03-24 Thread Zongyuan Li
Signed-off-by: Zongyuan Li --- hw/arm/stellaris.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/hw/arm/stellaris.c b/hw/arm/stellaris.c index b6c8a5d609..12c673c917 100644 --- a/hw/arm/stellaris.c +++ b/hw/arm/stellaris.c @@ -9,6 +9,7 @@ #include "

[PATCH v5 3/4] hw/intc/exynos4210: replace 'qemu_split_irq' in combiner and gic

2022-03-24 Thread Zongyuan Li
Signed-off-by: Zongyuan Li --- hw/arm/exynos4210.c | 26 +++ hw/intc/exynos4210_combiner.c | 81 +++ hw/intc/exynos4210_gic.c | 36 +--- include/hw/arm/exynos4210.h | 11 ++--- include/hw/core/split-irq.h | 5 +-- 5 files

[PATCH v5 4/4] hw/core/irq: remove unused 'qemu_irq_split' function

2022-03-24 Thread Zongyuan Li
Signed-off-by: Zongyuan Li Reviewed-by: Peter Maydell Resolves: https://gitlab.com/qemu-project/qemu/-/issues/811 --- hw/core/irq.c| 15 --- include/hw/irq.h | 5 - 2 files changed, 20 deletions(-) diff --git a/hw/core/irq.c b/hw/core/irq.c index 741219277b..3623f711fe

[PATCH v5 0/4] Replace 'qemu_irq_split' with 'TYPE_SPLIT_IRQ'

2022-03-24 Thread Zongyuan Li
to one, since they would affect each other. 2. Use `object_initialize_with_child` and `qdev_realize` for device code. 3. Code style fixes. 4. Remove unnecessary `if` statement used with `qdev_realize_and_unref. 5. Narrow scope of some variables. Changes since v4 1. Code style fixes. Zongyuan L

[PATCH v5 1/4] hw/arm/realview: replace 'qemu_split_irq' with 'TYPE_SPLIT_IRQ'

2022-03-24 Thread Zongyuan Li
Signed-off-by: Zongyuan Li --- hw/arm/realview.c | 33 - 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/hw/arm/realview.c b/hw/arm/realview.c index 7b424e94a5..d2dc8a8952 100644 --- a/hw/arm/realview.c +++ b/hw/arm/realview.c @@ -13,9 +13,11

Re: [PATCH v4 0/4] Replace 'qemu_irq_split' with 'TYPE_SPLIT_IRQ'

2022-03-24 Thread Zongyuan Li
This version seems to have some code style errors. I will fix that soon. Sorry for the bother. Li On Fri, Mar 25, 2022 at 1:18 AM Zongyuan Li wrote: > > This patch set tries to replace 'qemu_irq_split' function with QOM > object 'TYPE_SPLIT_IRQ' and totally remove

[PATCH v4 3/4] hw/intc/exynos4210: replace 'qemu_split_irq' in combiner and gic

2022-03-24 Thread Zongyuan Li
Signed-off-by: Zongyuan Li --- hw/arm/exynos4210.c | 26 hw/intc/exynos4210_combiner.c | 79 +++ hw/intc/exynos4210_gic.c | 36 include/hw/arm/exynos4210.h | 11 ++--- include/hw/core/split-irq.h | 5 +-- 5 files

[PATCH v4 2/4] hw/arm/stellaris: replace 'qemu_split_irq' with 'TYPE_SPLIT_IRQ'

2022-03-24 Thread Zongyuan Li
Signed-off-by: Zongyuan Li --- hw/arm/stellaris.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/hw/arm/stellaris.c b/hw/arm/stellaris.c index b6c8a5d609..12c673c917 100644 --- a/hw/arm/stellaris.c +++ b/hw/arm/stellaris.c @@ -9,6 +9,7 @@ #include "

[PATCH v4 4/4] hw/core/irq: remove unused 'qemu_irq_split' function

2022-03-24 Thread Zongyuan Li
Signed-off-by: Zongyuan Li Reviewed-by: Peter Maydell Resolves: https://gitlab.com/qemu-project/qemu/-/issues/811 --- hw/core/irq.c| 15 --- include/hw/irq.h | 5 - 2 files changed, 20 deletions(-) diff --git a/hw/core/irq.c b/hw/core/irq.c index 741219277b..3623f711fe

[PATCH v4 1/4] hw/arm/realview: replace 'qemu_split_irq' with 'TYPE_SPLIT_IRQ'

2022-03-24 Thread Zongyuan Li
Signed-off-by: Zongyuan Li --- hw/arm/realview.c | 33 - 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/hw/arm/realview.c b/hw/arm/realview.c index 7b424e94a5..d2dc8a8952 100644 --- a/hw/arm/realview.c +++ b/hw/arm/realview.c @@ -13,9 +13,11

[PATCH v4 0/4] Replace 'qemu_irq_split' with 'TYPE_SPLIT_IRQ'

2022-03-24 Thread Zongyuan Li
to one, since they would affect each other. 2. Use `object_initialize_with_child` and `qdev_realize` for device code. 3. Code style fixes. 4. Remove unnecessary `if` statement used with `qdev_realize_and_unref. 5. Narrow scope of some variables. Zongyuan Li (4): hw/arm/realview: replace 'qemu_sp

[PATCH v3 4/5] hw/intc/exynos4210_gic: replace 'qemu_split_irq' with 'TYPE_SPLIT_IRQ'

2022-03-23 Thread Zongyuan Li
Signed-off-by: Zongyuan Li --- hw/intc/exynos4210_gic.c | 25 ++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/hw/intc/exynos4210_gic.c b/hw/intc/exynos4210_gic.c index bc73d1f115..d8ecb9fae3 100644 --- a/hw/intc/exynos4210_gic.c +++ b/hw/intc

[PATCH v3 3/5] hw/intc/exynos4210_combiner: replace 'qemu_split_irq' with 'TYPE_SPLIT_IRQ'

2022-03-23 Thread Zongyuan Li
Signed-off-by: Zongyuan Li --- hw/intc/exynos4210_combiner.c | 32 +--- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/hw/intc/exynos4210_combiner.c b/hw/intc/exynos4210_combiner.c index 4534ee248d..18dade35d3 100644 --- a/hw/intc/exynos4210_combiner.c

[PATCH v3 2/5] hw/arm/stellaris: replace 'qemu_split_irq' with 'TYPE_SPLIT_IRQ'

2022-03-23 Thread Zongyuan Li
Signed-off-by: Zongyuan Li --- hw/arm/stellaris.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/hw/arm/stellaris.c b/hw/arm/stellaris.c index b6c8a5d609..ccc2d5def2 100644 --- a/hw/arm/stellaris.c +++ b/hw/arm/stellaris.c @@ -9,6 +9,7 @@ #include "

[PATCH v3 1/5] hw/arm/realview: replace 'qemu_split_irq' with 'TYPE_SPLIT_IRQ'

2022-03-23 Thread Zongyuan Li
Signed-off-by: Zongyuan Li --- hw/arm/realview.c | 41 - 1 file changed, 32 insertions(+), 9 deletions(-) diff --git a/hw/arm/realview.c b/hw/arm/realview.c index 7b424e94a5..97ace560bf 100644 --- a/hw/arm/realview.c +++ b/hw/arm/realview.c @@ -13,9

[PATCH v3 5/5] hw/core/irq: remove unused 'qemu_irq_split' function

2022-03-23 Thread Zongyuan Li
Signed-off-by: Zongyuan Li Resolves: https://gitlab.com/qemu-project/qemu/-/issues/811 --- hw/core/irq.c| 15 --- include/hw/irq.h | 5 - 2 files changed, 20 deletions(-) diff --git a/hw/core/irq.c b/hw/core/irq.c index 741219277b..3623f711fe 100644 --- a/hw/core/irq.c

[PATCH v3 0/5] Replace 'qemu_irq_split' with 'TYPE_SPLIT_IRQ'

2022-03-23 Thread Zongyuan Li
;qemu_irq_split' calls in multiple boards 2. Remove 'qemu_irq_split' implementation and declaration Zongyuan Li (5): hw/arm/realview: replace 'qemu_split_irq' with 'TYPE_SPLIT_IRQ' hw/arm/stellaris: replace 'qemu_split_irq' with 'TYPE_SPLIT_IRQ'

[RFC PATCH v2 0/1] Replace 'qemu_irq_split' with 'TYPE_SPLIT_IRQ'

2022-03-20 Thread Zongyuan Li
t function? If that is true, I will change that 3. Use 'qdev_*' rather than 'Object' directly Thanks for reviewing. Zongyuan Li (1): hw/arm/realview: replace 'qemu_split_irq' with 'TYPE_SPLIT_IRQ' hw/arm/realview.c | 41 - 1 file changed, 32 insertions(+), 9 deletions(-) -- 2.34.0

[RFC PATCH v2 1/1] hw/arm/realview: replace 'qemu_split_irq' with 'TYPE_SPLIT_IRQ'

2022-03-20 Thread Zongyuan Li
Signed-off-by: Zongyuan Li --- hw/arm/realview.c | 41 - 1 file changed, 32 insertions(+), 9 deletions(-) diff --git a/hw/arm/realview.c b/hw/arm/realview.c index 7b424e94a5..97ace560bf 100644 --- a/hw/arm/realview.c +++ b/hw/arm/realview.c @@ -13,9

[RFC PATCH v1 1/1] hw/arm/realview: replace 'qemu_split_irq' with 'TYPE_SPLIT_IRQ'

2022-03-19 Thread Zongyuan Li
Signed-off-by: Zongyuan Li Resolves: https://gitlab.com/qemu-project/qemu/-/issues/811 --- hw/arm/realview.c | 52 +++ 1 file changed, 44 insertions(+), 8 deletions(-) diff --git a/hw/arm/realview.c b/hw/arm/realview.c index 7b424e94a5..741ed5c2c7

[RFC PATCH v1 0/1] Replace 'qemu_irq_split' with 'TYPE_SPLIT_IRQ'

2022-03-19 Thread Zongyuan Li
This is a WIP patch set trying to resolve https://gitlab.com/qemu-project/qemu/-/issues/811 which tries to totally remove 'qemu_irq_split', and uses QOM object 'TYPE_SPLIT_IRQ' device instead. I just want to make sure I'm on the right way. Zongyuan Li (1): hw/arm/rea

[PATCH] target/hexagon: remove unused variable

2022-01-23 Thread Zongyuan Li
When building with clang version 13.0.0 (eg. Fedora 13.0.0-3.fc35), two unused variables introduced by macro GATHER_FUNCTION and SCATTER_FUNCTION will cause building process failure due to [-Werror -Wunused-variable]. Signed-off-by: Zongyuan Li Resolves: https://gitlab.com/qemu-project/qemu