Re: [PATCH] target/unicore32: Remove CURSES stuff from the Makefile.objs

2020-07-24 Thread Guan Xuetao
That's OK for unicore32 target. Acked-by: Guan Xuetao > -原始邮件- > 发件人: "Thomas Huth" > 发送时间: 2020-07-23 21:22:19 (星期四) > 收件人: "Guan Xuetao" , qemu-devel@nongnu.org > 抄送: "Philippe Mathieu-Daudé" , qemu-triv...@nongnu.org, > "

Re: [Qemu-devel] [PATCH 22/26] target/unicore32: Convert to CPUClass::tlb_fill

2019-05-07 Thread Guan Xuetao
It's OK for unicore32 codes. Thanks. Guan Xuetao > -Original Messages- > From: "Peter Maydell" > Sent Time: 2019-04-30 18:06:03 (Tuesday) > To: "Richard Henderson" > Cc: "QEMU Developers" , "Guan Xuetao" > > Su

Re: [Qemu-devel] Maintainers, please tell us how to boot your machines!

2019-03-28 Thread Guan Xuetao
lo" , "Alexander Graf" , > "Andrey Smirnov" , "Andrzej Zaborowski" > , "Anthony Green" , "Anthony Perard" > , "Aurelien Jarno" , > "Bastian Koppelmann" , "Chris Wulff" > , "Guan Xuetao" ,

[Qemu-devel] 答复: [PATCH qom-cpu for-1.4] target-unicore32: Rename CPU subtypes

2013-01-29 Thread Guan Xuetao
> -邮件原件- > 发件人: Andreas Färber [mailto:afaer...@suse.de] > 发送时间: Monday, January 28, 2013 23:47 > 收件人: qemu-devel@nongnu.org > 抄送: Guan Xuetao > 主题: Re: [Qemu-devel] [PATCH qom-cpu for-1.4] target-unicore32: Rename > CPU subtypes > > Am 27.01.2013 23:50, sch

[Qemu-devel] 答复: [RFC 19/19] target-unicore32: Refactor debug output macros

2013-01-29 Thread Guan Xuetao
> -邮件原件- > 发件人: Andreas Färber [mailto:afaer...@suse.de] > 发送时间: Sunday, January 27, 2013 21:32 > 收件人: qemu-devel@nongnu.org > 抄送: Andreas Färber; Guan Xuetao (maintainer:UniCore32) > 主题: [RFC 19/19] target-unicore32: Refactor debug output macros > > Make debug

[Qemu-devel] 答复: [RFC qom-cpu v2 27/28] target-unicore32: Move TCG initialization to UniCore32CPU initfn

2013-01-23 Thread Guan Xuetao
> -邮件原件- > 发件人: Andreas Färber [mailto:afaer...@suse.de] > 发送时间: Sunday, January 20, 2013 15:23 > 收件人: qemu-devel@nongnu.org > 抄送: Andreas Färber; Guan Xuetao (maintainer:UniCore32) > 主题: [RFC qom-cpu v2 27/28] target-unicore32: Move TCG initialization to >

[Qemu-devel] (no subject)

2012-07-19 Thread Guan Xuetao
are available in the git repository at: git://github.com/gxt/QEMU.git unicore32 Andreas Färber (1): target-unicore32: Drop UC32_CPUID macros Guan Xuetao (13): unicore32-softmmu: Add unicore32-softmmu build support unicore32-softmmu: Add coprocessor 0(sysctrl) and 1(ocd

[Qemu-devel] [PATCHv4 00/14] unicore32: Add unicore32-softmmu support

2012-07-13 Thread Guan Xuetao
system control modules are simulated, to make linux kernel boot and busybox run in initramfs. Thanks Andreas Farber, Blue Swirl and Chen Weiren for their priceless advice, which is v4 based on. Any advice is greatly appreciated. Thanks, Guan Xuetao --- Andreas Färber (1): target-unicore32: Drop

[Qemu-devel] [PATCHv4 02/14] unicore32-softmmu: Add coprocessor 0(sysctrl) and 1(ocd) instruction support

2012-07-13 Thread Guan Xuetao
card. TODO: curses display should be added lator for screen output. Signed-off-by: Guan Xuetao --- target-unicore32/helper.c| 185 +- target-unicore32/helper.h| 17 ++--- target-unicore32/translate.c | 80 ++- 3 files changed, 233

[Qemu-devel] [PATCHv4 08/14] unicore32-softmmu: Add puv3 interrupt support

2012-07-13 Thread Guan Xuetao
This patch adds puv3 interrupt support, include interrupt controler device simulation and interrupt handler in puv3 machine. Signed-off-by: Guan Xuetao --- hw/Makefile.objs |3 + hw/puv3.c| 23 +- hw/puv3_intc.c | 135

[Qemu-devel] [PATCHv4 14/14] unicore32-softmmu: Add maintainer information for UniCore32 machine

2012-07-13 Thread Guan Xuetao
Signed-off-by: Guan Xuetao --- MAINTAINERS |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 30ed56d..35dbbad 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -405,6 +405,14 @@ M: Alexander Graf S: Maintained F: hw/s390-*.c

[Qemu-devel] [PATCHv4 01/14] unicore32-softmmu: Add unicore32-softmmu build support

2012-07-13 Thread Guan Xuetao
This patch adds unicore32-softmmu build support, include configure, makefile, arch_init, and all missing functions needed by softmmu. Although all missing functions are empty, unicore32-softmmu could be build successfully. Signed-off-by: Guan Xuetao --- arch_init.c

[Qemu-devel] [PATCHv4 12/14] unicore32-softmmu: Add puv3 dma support

2012-07-13 Thread Guan Xuetao
This patch adds puv3 dma (Direct Memory Access) support, include dma device simulation for kernel booting. Signed-off-by: Guan Xuetao --- hw/Makefile.objs |1 + hw/puv3.c|1 + hw/puv3_dma.c| 109 ++ 3 files changed, 111

[Qemu-devel] [PATCHv4 07/14] unicore32-softmmu: Add puv3 soc/board support

2012-07-13 Thread Guan Xuetao
This patch only add puv3 soc/board support, which introduces puv3 machine description, and specifies console type. Signed-off-by: Guan Xuetao --- default-configs/unicore32-softmmu.mak |1 + hw/puv3.c | 93 + hw/puv3.h

[Qemu-devel] [PATCHv4 06/14] unicore32-softmmu: Make sure that kernel can access user space

2012-07-13 Thread Guan Xuetao
As a matter of course, we need to access user space in kernel code, so we need to correct load/store decoders to indicate correct memory region. Signed-off-by: Guan Xuetao --- target-unicore32/translate.c | 36 ++-- 1 files changed, 26 insertions(+), 10

[Qemu-devel] [PATCHv4 03/14] unicore32-softmmu: Make UniCore32 cpuid & exceptions correct and runable

2012-07-13 Thread Guan Xuetao
This patch initializes the cpuid to exactly correct value because linux kernel will check it. In addition, the exception types are specified in proper situations. Then it could make exceptions generated correctly and timely. Signed-off-by: Guan Xuetao --- cpu-exec.c |1 + linux

[Qemu-devel] [PATCHv4 10/14] unicore32-softmmu: Add puv3 gpio support

2012-07-13 Thread Guan Xuetao
This patch adds puv3 gpio (General Purpose Input/Output) support, include gpio device simulation and its interrupt support. Signed-off-by: Guan Xuetao --- hw/Makefile.objs |1 + hw/puv3.c|6 ++ hw/puv3_gpio.c | 141 ++ 3

[Qemu-devel] [PATCHv4 09/14] unicore32-softmmu: Add puv3 ostimer support

2012-07-13 Thread Guan Xuetao
This patch adds puv3 ostimer support, include os timer device simulation and ptimer support in puv3 machine. Signed-off-by: Guan Xuetao --- default-configs/unicore32-softmmu.mak |1 + hw/Makefile.objs |1 + hw/puv3.c |3 + hw

[Qemu-devel] [PATCHv4 13/14] unicore32-softmmu: Add ps2 support

2012-07-13 Thread Guan Xuetao
This patch adds ps2/keyboard support, and enables CONFIG_PCKBD. Signed-off-by: Guan Xuetao --- default-configs/unicore32-softmmu.mak |1 + hw/puv3.c |5 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/default-configs/unicore32-softmmu.mak

[Qemu-devel] [PATCHv4 05/14] unicore32-softmmu: Implement softmmu specific functions

2012-07-13 Thread Guan Xuetao
This patch implements softmmu specific functions, include tlb_fill, switch_mode, do_interrupt and uc32_cpu_handle_mmu_fault. So the full exception handlers and page table walking could work now. Signed-off-by: Guan Xuetao --- target-unicore32/op_helper.c | 22 - target-unicore32/softmmu.c

[Qemu-devel] [PATCHv4 11/14] unicore32-softmmu: Add puv3 pm support

2012-07-13 Thread Guan Xuetao
This patch adds puv3 pm (power management) support, include pm device simulation for kernel booting. Thank Blue Swirl for pointing out the missing "break". Signed-off-by: Guan Xuetao --- hw/Makefile.objs |1 + hw/puv3.c|1 + hw/puv3_pm.c

[Qemu-devel] [PATCHv4 04/14] target-unicore32: Drop UC32_CPUID macros

2012-07-13 Thread Guan Xuetao
From: Andreas Färber Any code that depends on a particular CPU type can now go through callbacks on the QOM UniCore32CPUClass. Signed-off-by: Andreas Färber --- target-unicore32/cpu.h |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/target-unicore32/cpu.h b/target-un

Re: [Qemu-devel] [PATCHv3 12/14] unicore32-softmmu: Add puv3 dma support

2012-06-19 Thread Guan Xuetao
what different from the instruction case, since only > privileged guest code (kernel) can write to hardware. The kernel can > also for example power off the machine. It's the same problem as cpu_abort. Warning information is enough here. Is there a global and simple way to do it, g_warning()? Guan Xuetao

Re: [Qemu-devel] [PATCHv3 11/14] unicore32-softmmu: Add puv3 pm support

2012-06-19 Thread Guan Xuetao
switch (offset) { > > +case 0x0: > > +s->reg_PMCR = value; > > Missing 'break' or a comment about fall through. Yes, 'break' is missed here. Thanks ever so much. Guan Xuetao

Re: [Qemu-devel] [PATCHv3 07/14] unicore32-softmmu: Add puv3 soc/board support

2012-06-19 Thread Guan Xuetao
arations > > + * > > + * Copyright (C) 2010-2012 Guan Xuetao > > + * > > + * This program is free software; you can redistribute it and/or modify > > + * it under the terms of the GNU General Public License version 2 as > > + * published by the Free Software Found

Re: [Qemu-devel] [PATCHv3 02/14] unicore32-softmmu: Add coprocessor 0(sysctrl) and 1(ocd) instruction support

2012-06-19 Thread Guan Xuetao
On Mon, 2012-06-18 at 19:51 +, Blue Swirl wrote: > On Mon, Jun 18, 2012 at 9:24 AM, Guan Xuetao wrote: > > Coprocessor 0 is system control coprocessor, and we need get/set its > > contents. > > Also, all cache/tlb ops shoule be implemented here, but just igno

[Qemu-devel] [PATCHv3 11/14] unicore32-softmmu: Add puv3 pm support

2012-06-18 Thread Guan Xuetao
This patch adds puv3 pm (power management) support, include pm device simulation for kernel booting. Signed-off-by: Guan Xuetao --- hw/Makefile.objs |1 + hw/puv3.c|1 + hw/puv3_pm.c | 148 ++ 3 files changed, 150

[Qemu-devel] [PATCHv3 10/14] unicore32-softmmu: Add puv3 gpio support

2012-06-18 Thread Guan Xuetao
This patch adds puv3 gpio (General Purpose Input/Output) support, include gpio device simulation and its interrupt support. Signed-off-by: Guan Xuetao --- hw/Makefile.objs |1 + hw/puv3.c|6 ++ hw/puv3_gpio.c | 141 ++ 3

[Qemu-devel] [PATCHv3 13/14] unicore32-softmmu: Add ps2 support

2012-06-18 Thread Guan Xuetao
This patch adds ps2/keyboard support, and enables CONFIG_PCKBD. Signed-off-by: Guan Xuetao --- default-configs/unicore32-softmmu.mak |1 + hw/puv3.c |5 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/default-configs/unicore32-softmmu.mak

[Qemu-devel] [PATCHv3 14/14] unicore32-softmmu: Add maintainer information for UniCore32 machine

2012-06-18 Thread Guan Xuetao
Signed-off-by: Guan Xuetao --- MAINTAINERS |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index b45f075..eb5d93a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -394,6 +394,13 @@ M: Alexander Graf S: Maintained F: hw/s390-*.c

[Qemu-devel] [PATCHv3 05/14] unicore32-softmmu: Implement softmmu specific functions

2012-06-18 Thread Guan Xuetao
This patch implements softmmu specific functions, include tlb_fill, switch_mode, do_interrupt and uc32_cpu_handle_mmu_fault. So the full exception handlers and page table walking could work now. Signed-off-by: Guan Xuetao --- target-unicore32/op_helper.c | 22 - target-unicore32/softmmu.c

[Qemu-devel] [PATCHv3 06/14] unicore32-softmmu: Make sure that kernel can access user space

2012-06-18 Thread Guan Xuetao
As a matter of course, we need to access user space in kernel code, so we need to correct load/store decoders to indicate correct memory region. Signed-off-by: Guan Xuetao --- target-unicore32/translate.c | 36 ++-- 1 files changed, 26 insertions(+), 10

[Qemu-devel] [PATCHv3 03/14] unicore32-softmmu: Make UniCore32 cpuid & exceptions correct and runable

2012-06-18 Thread Guan Xuetao
This patch initializes the cpuid to exactly correct value because linux kernel will check it. In addition, the exception types are specified in proper situations. Then it could make exceptions generated correctly and timely. Signed-off-by: Guan Xuetao --- cpu-exec.c |1 + linux

[Qemu-devel] [PATCHv3 12/14] unicore32-softmmu: Add puv3 dma support

2012-06-18 Thread Guan Xuetao
This patch adds puv3 dma (Direct Memory Access) support, include dma device simulation for kernel booting. Signed-off-by: Guan Xuetao --- hw/Makefile.objs |1 + hw/puv3.c|1 + hw/puv3_dma.c| 109 ++ 3 files changed, 111

[Qemu-devel] [PATCHv3 09/14] unicore32-softmmu: Add puv3 ostimer support

2012-06-18 Thread Guan Xuetao
This patch adds puv3 ostimer support, include os timer device simulation and ptimer support in puv3 machine. Signed-off-by: Guan Xuetao --- default-configs/unicore32-softmmu.mak |1 + hw/Makefile.objs |1 + hw/puv3.c |3 + hw

[Qemu-devel] [PATCHv3 07/14] unicore32-softmmu: Add puv3 soc/board support

2012-06-18 Thread Guan Xuetao
This patch only add puv3 soc/board support, which introduces puv3 machine description, and specifies console type. Signed-off-by: Guan Xuetao --- default-configs/unicore32-softmmu.mak |1 + hw/puv3.c | 93 + hw/puv3.h

[Qemu-devel] [PATCHv3 00/14] unicore32: add softmmu support and puv3 machine

2012-06-18 Thread Guan Xuetao
system control modules are simulated, to make linux kernel boot and busybox run in initramfs. Any advice is greatly appreciated. Thanks, Guan Xuetao Andreas Färber (1): target-unicore32: Drop UC32_CPUID macros Guan Xuetao (13): unicore32-softmmu: Add unicore32-softmmu build support unicore32

[Qemu-devel] [PATCHv3 08/14] unicore32-softmmu: Add puv3 interrupt support

2012-06-18 Thread Guan Xuetao
This patch adds puv3 interrupt support, include interrupt controler device simulation and interrupt handler in puv3 machine. Signed-off-by: Guan Xuetao --- hw/Makefile.objs |3 + hw/puv3.c| 23 +- hw/puv3_intc.c | 135

[Qemu-devel] [PATCHv3 01/14] unicore32-softmmu: Add unicore32-softmmu build support

2012-06-18 Thread Guan Xuetao
This patch adds unicore32-softmmu build support, include configure, makefile, arch_init, and all missing functions needed by softmmu. Although all missing functions are empty, unicore32-softmmu could be build successfully. Signed-off-by: Guan Xuetao --- arch_init.c

[Qemu-devel] [PATCHv3 04/14] target-unicore32: Drop UC32_CPUID macros

2012-06-18 Thread Guan Xuetao
From: Andreas Färber Any code that depends on a particular CPU type can now go through callbacks on the QOM UniCore32CPUClass. Signed-off-by: Andreas Färber --- target-unicore32/cpu.h |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/target-unicore32/cpu.h b/target-un

[Qemu-devel] [PATCHv3 02/14] unicore32-softmmu: Add coprocessor 0(sysctrl) and 1(ocd) instruction support

2012-06-18 Thread Guan Xuetao
card. Signed-off-by: Guan Xuetao --- target-unicore32/helper.c| 177 +- target-unicore32/helper.h| 17 ++--- target-unicore32/translate.c | 75 ++- 3 files changed, 221 insertions(+), 48 deletions(-) diff --git a/target-unicore32

Re: [Qemu-devel] [PATCHv2 02/13] unicore32-softmmu: Add coprocessor 0(sysctrl) and 1(ocd) instruction support

2012-06-17 Thread Guan Xuetao
On Fri, 2012-06-15 at 13:13 +0200, Andreas Färber wrote: > Am 15.06.2012 11:47, schrieb Guan Xuetao: > > Coprocessor 0 is system control coprocessor, and we need get/set its > > contents. > > Also, all cache/tlb ops shoule be implemented here, but just igno

Re: [Qemu-devel] [PATCHv2 00/13] unicore32: add softmmu support and puv3 machine

2012-06-17 Thread Guan Xuetao
On Fri, 2012-06-15 at 18:17 +0800, 陳韋任 (Wei-Ren Chen) wrote: > On Fri, Jun 15, 2012 at 05:47:33PM +0800, Guan Xuetao wrote: > > These patches implement softmmu support on unicore32 architecture. > > > > UniCore32 CPU is embedded in PKUnity-3 SoC, so we add necessary puv3 &

Re: [Qemu-devel] [PATCHv2 05/13] unicore32-softmmu: Make sure that kernel can access user space

2012-06-17 Thread Guan Xuetao
>I would suggest you to rename it to mmu_idx or something like that. :) > > Regards, > chenwj > Done, thx. Regards Guan Xuetao

[Qemu-devel] [PATCHv2 07/13] unicore32-softmmu: Add puv3 interrupt support

2012-06-15 Thread Guan Xuetao
This patch adds puv3 interrupt support, include interrupt controler device simulation and interrupt handler in puv3 machine. Signed-off-by: Guan Xuetao --- Makefile.objs |3 + hw/puv3.c | 23 +- hw/puv3_intc.c | 135

[Qemu-devel] [PATCHv2 05/13] unicore32-softmmu: Make sure that kernel can access user space

2012-06-15 Thread Guan Xuetao
As a matter of course, we need to access user space in kernel code, so we need to correct load/store decoders to indicate correct memory region. Signed-off-by: Guan Xuetao --- target-unicore32/translate.c | 36 ++-- 1 files changed, 26 insertions(+), 10

[Qemu-devel] [PATCHv2 10/13] unicore32-softmmu: Add puv3 pm support

2012-06-15 Thread Guan Xuetao
This patch adds puv3 pm (power management) support, include pm device simulation for kernel booting. Signed-off-by: Guan Xuetao --- Makefile.objs |1 + hw/puv3.c |1 + hw/puv3_pm.c | 148 + 3 files changed, 150 insertions

[Qemu-devel] [PATCHv2 11/13] unicore32-softmmu: Add puv3 dma support

2012-06-15 Thread Guan Xuetao
This patch adds puv3 dma (Direct Memory Access) support, include dma device simulation for kernel booting. Signed-off-by: Guan Xuetao --- Makefile.objs |1 + hw/puv3.c |1 + hw/puv3_dma.c | 109 + 3 files changed, 111

[Qemu-devel] [PATCHv2 08/13] unicore32-softmmu: Add puv3 ostimer support

2012-06-15 Thread Guan Xuetao
This patch adds puv3 ostimer support, include os timer device simulation and ptimer support in puv3 machine. Signed-off-by: Guan Xuetao --- Makefile.objs |1 + default-configs/unicore32-softmmu.mak |1 + hw/puv3.c |3 + hw

[Qemu-devel] [PATCHv2 13/13] unicore32-softmmu: Add maintainer information for UniCore32 machine

2012-06-15 Thread Guan Xuetao
Signed-off-by: Guan Xuetao --- MAINTAINERS |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index b45f075..eb5d93a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -394,6 +394,13 @@ M: Alexander Graf S: Maintained F: hw/s390-*.c

[Qemu-devel] [PATCHv2 00/13] unicore32: add softmmu support and puv3 machine

2012-06-15 Thread Guan Xuetao
greatly appreciated. Thanks, Guan Xuetao --- Guan Xuetao (13): unicore32-softmmu: Add unicore32-softmmu build support unicore32-softmmu: Add coprocessor 0(sysctrl) and 1(ocd) instruction support unicore32-softmmu: Make UniCore32 cpuid & exceptions correct and runable unico

[Qemu-devel] [PATCHv2 02/13] unicore32-softmmu: Add coprocessor 0(sysctrl) and 1(ocd) instruction support

2012-06-15 Thread Guan Xuetao
card. Signed-off-by: Guan Xuetao --- target-unicore32/helper.c| 185 -- target-unicore32/helper.h| 15 ++-- target-unicore32/translate.c | 75 +- 3 files changed, 223 insertions(+), 52 deletions(-) diff --git a/target-unicore32

[Qemu-devel] [PATCHv2 12/13] unicore32-softmmu: Add ps2 support

2012-06-15 Thread Guan Xuetao
This patch adds ps2/keyboard support, and enables CONFIG_PCKBD. Signed-off-by: Guan Xuetao --- default-configs/unicore32-softmmu.mak |1 + hw/puv3.c |5 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/default-configs/unicore32-softmmu.mak

[Qemu-devel] [PATCHv2 01/13] unicore32-softmmu: Add unicore32-softmmu build support

2012-06-15 Thread Guan Xuetao
This patch adds unicore32-softmmu build support, include configure, makefile, arch_init, and all missing functions needed by softmmu. Although all missing functions are empty, unicore32-softmmu could be build successfully. Signed-off-by: Guan Xuetao --- Makefile.target

[Qemu-devel] [PATCHv2 06/13] unicore32-softmmu: Add puv3 soc/board support

2012-06-15 Thread Guan Xuetao
This patch only add puv3 soc/board support, which introduces puv3 machine description, and specifies console type. Signed-off-by: Guan Xuetao --- Makefile.target |1 + default-configs/unicore32-softmmu.mak |1 + hw/puv3.c | 93

[Qemu-devel] [PATCHv2 09/13] unicore32-softmmu: Add puv3 gpio support

2012-06-15 Thread Guan Xuetao
This patch adds puv3 gpio (General Purpose Input/Output) support, include gpio device simulation and its interrupt support. Signed-off-by: Guan Xuetao --- Makefile.objs |1 + hw/puv3.c |6 ++ hw/puv3_gpio.c | 141 3 files

[Qemu-devel] [PATCHv2 04/13] unicore32-softmmu: Implement softmmu specific functions

2012-06-15 Thread Guan Xuetao
This patch implements softmmu specific functions, include tlb_fill, switch_mode, do_interrupt and uc32_cpu_handle_mmu_fault. So the full exception handlers and page table walking could work now. Signed-off-by: Guan Xuetao --- target-unicore32/op_helper.c | 22 - target-unicore32/softmmu.c

[Qemu-devel] [PATCHv2 03/13] unicore32-softmmu: Make UniCore32 cpuid & exceptions correct and runable

2012-06-15 Thread Guan Xuetao
This patch initializes the cpuid to exactly correct value because linux kernel will check it. Also UC32_CPUID_* are removed. In addition, the exception types are specified in proper situations. Then it could make exceptions generated correctly and timely. Signed-off-by: Guan Xuetao --- cpu

Re: [Qemu-devel] [PATCH 0/9] *** SUBJECT HERE ***

2012-05-25 Thread Guan Xuetao
On Fri, 2012-05-25 at 19:28 +0800, Guan Xuetao wrote: > These patches implement softmmu support on unicore32 architecture. I'm really sorry for the subject. The subject is: softmmu implementation on UniCore32 ISA Thanks. Guan Xuetao

[Qemu-devel] [PATCH 6/9] unicore32-softmmu: add generic cpu state save/load functions

2012-05-25 Thread Guan Xuetao
This patch adds generic cpu state save/load functions for UniCore32 ISA. All architecture related registers are saved or loaded, and no optimization. Signed-off-by: Guan Xuetao --- target-unicore32/machine.c | 99 1 files changed, 99 insertions

[Qemu-devel] [PATCH 5/9] unicore32-softmmu: initialize ucv2 cpu

2012-05-25 Thread Guan Xuetao
Signed-off-by: Guan Xuetao --- target-unicore32/cpu.c | 17 + target-unicore32/cpu.h |2 +- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/target-unicore32/cpu.c b/target-unicore32/cpu.c index de63f58..62c0a22 100644 --- a/target-unicore32/cpu.c +++ b

[Qemu-devel] [PATCH 7/9] unicore32-softmmu: add puv3 soc support

2012-05-25 Thread Guan Xuetao
This patch only add minimal necessary system-control modules simulation for successfully kernel booting and busybox running. Signed-off-by: Guan Xuetao --- hw/pkunity/puv3.c | 130 + hw/pkunity/puv3.h | 49 hw/pkunity

[Qemu-devel] [PATCH 2/9] unicore32-softmmu: implement some softmmu specific functions

2012-05-25 Thread Guan Xuetao
This patch seperates softmmu functions from the old user-only ones. So the full exception handlers and page table walking could work now. Signed-off-by: Guan Xuetao --- target-unicore32/helper.c | 25 ++-- target-unicore32/uc32_softmmu.c | 267 +++ 2

[Qemu-devel] [PATCH 0/9] *** SUBJECT HERE ***

2012-05-25 Thread Guan Xuetao
. Any advice is greatly appreciated. Thanks, Guan Xuetao --- Guan Xuetao (9): unicore32-softmmu: make exceptions generated in unicore32 architecture unicore32-softmmu: implement some softmmu specific functions unicore32-softmmu: add coprocessor 0 and ocd instruction support unicore32

[Qemu-devel] [PATCH 8/9] unicore32-softmmu: add config and makefile support

2012-05-25 Thread Guan Xuetao
This patch adds configure and makefile support for unicore32-softmmu. All puv3-soc devices are put into hw/pkunity directory, so this dir will be added when unicore32-softmmu is selected. Signed-off-by: Guan Xuetao --- Makefile.target |5 + arch_init.c

[Qemu-devel] [PATCH 9/9] unicore32-softmmu: add maintainer information

2012-05-25 Thread Guan Xuetao
Signed-off-by: Guan Xuetao --- MAINTAINERS |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index b45f075..5b6b031 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -394,6 +394,13 @@ M: Alexander Graf S: Maintained F: hw/s390-*.c

[Qemu-devel] [PATCH 3/9] unicore32-softmmu: add coprocessor 0 and ocd instruction support

2012-05-25 Thread Guan Xuetao
et-unicore32/op_helper.c +++ b/target-unicore32/op_helper.c @@ -1,7 +1,7 @@ /* * UniCore32 helper routines * - * Copyright (C) 2010-2011 GUAN Xue-tao + * Copyright (C) 2010-2012 Guan Xuetao * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU G

[Qemu-devel] [PATCH 1/9] unicore32-softmmu: make exceptions generated in unicore32 architecture

2012-05-25 Thread Guan Xuetao
We need to specify the exception type in proper situations. Then it could make exceptions generated correctly and timely. Signed-off-by: Guan Xuetao --- cpu-exec.c |1 + linux-user/main.c |3 ++- target-unicore32/cpu.h |6 -- 3 files changed, 7 insertions(+), 3

[Qemu-devel] [PATCH 4/9] unicore32-softmmu: make sure that kernel can access user space

2012-05-25 Thread Guan Xuetao
Signed-off-by: Guan Xuetao --- target-unicore32/translate.c | 33 - 1 files changed, 24 insertions(+), 9 deletions(-) diff --git a/target-unicore32/translate.c b/target-unicore32/translate.c index d76fff0..1f0ba4f 100644 --- a/target-unicore32/translate.c +++ b

Re: [Qemu-devel] [PATCH v2 5/5] target-unicore32: Move CPU-dependent init into initfn

2012-03-30 Thread Guan Xuetao
On 03/30/2012 01:14 AM, Andreas Färber wrote: Instead of setting values in a CPUID switch, do so in initfn functions. Signed-off-by: Andreas Färber Acked-by: Guan Xuetao --- target-unicore32/cpu.c| 14 ++ target-unicore32/helper.c | 23 --- 2 files

Re: [Qemu-devel] [PATCH v2 4/5] target-unicore32: QOM'ify CPU

2012-03-30 Thread Guan Xuetao
On 03/30/2012 01:14 AM, Andreas Färber wrote: Embed CPUUniCore32State as first member of UniCore32CPU. Contributed under GPLv2+. Signed-off-by: Andreas Färber Acked-by: Guan Xuetao --- Makefile.target|1 + target-unicore32/cpu-qom.h | 59

Re: [Qemu-devel] [PATCH v2 3/5] target-unicore32: License future contributions under GPLv2+

2012-03-30 Thread Guan Xuetao
Software Foundation. + * + * Contributions from 2012-04-01 on are considered under GPL version 2, + * or (at your option) any later version. */ #include "cpu.h" Acked-by: Guan Xuetao

Re: [Qemu-devel] [PATCH v2 0/5] QOM'ify UniCore32 CPU

2012-03-30 Thread Guan Xuetao
ns into initfn. Could you test this please and, if happy, provide your Acked-by for patches 1 and 3-5? I tested unicore32-linux-user mode, and it worked very well. BTW, patch 1 has my Acked-by already. Thanks & Regards, Guan Xuetao Available from: git://github.com/afaerber/qemu-cpu.git

Re: [Qemu-devel] [PATCH 3/7] target-unicore32: QOM'ify CPU

2012-03-14 Thread Guan Xuetao
On Wed, 2012-03-14 at 11:56 +0100, Andreas Färber wrote: > Am 14.03.2012 08:56, schrieb Guan Xuetao: > > On Wed, 2012-03-14 at 02:39 +0100, Andreas Färber wrote: > >> Embed CPUUniCore32State into UniCore32CPU. > >> > >> Contributed under GPLv2+. >

Re: [Qemu-devel] [PATCH 3/7] target-unicore32: QOM'ify CPU

2012-03-14 Thread Guan Xuetao
++ > target-unicore32/cpu.c | 91 > I hope the gpl information for cpu.c and cpu-qom.h could be consistent with other files. Guan Xuetao > target-unicore32/cpu.h |1 + > target-unicore32/helper.c | 43 +++-

Re: [Qemu-devel] [PATCH 2/7] target-unicore32: Relicense to GPLv2+

2012-03-14 Thread Guan Xuetao
On Wed, 2012-03-14 at 02:39 +0100, Andreas Färber wrote: > Adopt the license text suggested by Guan Xue-tao for all files except > helper.c, to which Anthony Liguori (IBM) contributed a g_malloc() call. > > Signed-off-by: Andreas Färber > Signed-off-by: Guan Xuetao > Signed-o

Re: [Qemu-devel] [PATCH 1/7] MAINTAINERS: Add entry for UniCore32

2012-03-14 Thread Guan Xuetao
On Wed, 2012-03-14 at 02:39 +0100, Andreas Färber wrote: > Consider it Odd Fixes for now. > > Signed-off-by: Andreas Färber > Cc: Guan Xuetao > --- > MAINTAINERS |5 + > 1 files changed, 5 insertions(+), 0 deletions(-) > > diff --git a/MAINTAINERS b/M

Re: [Qemu-devel] [PATCH 0/7] QOM'ify UniCore32 CPU

2012-03-14 Thread Guan Xuetao
code, so let's > tackle it next. > > Patch 1 adds a UniCore32 CPU guest core (TCG) section to MAINTAINERS, > so that the target-unicore32 author gets notified of patches against his code. > > Patch 2, based on feedback from Guan Xuetao, changes the license of most > t

Re: [Qemu-devel] [PATCHv3 0/3] unicore32: add unicore32-linux-user support for qemu 0.14

2012-02-13 Thread Guan Xuetao
ill in my TODO list. > > Cf. http://wiki.qemu.org/Relicensing > > Thanks in advance, > > Andreas > Thanks & Regards, Guan Xuetao

Re: [Qemu-devel] [PATCH 1/3] Fix conversions from pointer to tcg_target_long

2011-07-17 Thread Guan Xuetao
It's good for unicore32 bit. Acked-by: Guan Xuetao Thanks & Regards. Guan Xuetao On Fri, 2011-07-15 at 21:38 +0200, Stefan Weil wrote: > tcg_gen_exit_tb takes a parameter of type tcg_target_long, > so the type casts of pointer to long should be replaced by > type c

Re: [Qemu-devel] [PATCH 3/3] target-unicore32: mark a few helpers const + pure

2011-04-12 Thread Guan Xuetao
Applied, thanks. Tested-and-Acked-by: Guan Xuetao Guan > -Original Message- > From: Aurelien Jarno [mailto:aurel...@aurel32.net] > Sent: Wednesday, April 13, 2011 6:31 AM > To: qemu-devel@nongnu.org > Cc: Aurelien Jarno; Guan Xuetao > Subject: [PATCH 3/3] target-uni

[Qemu-devel] [PATCH] target-unicore32: move FPU helpers to op_helper.c

2011-04-12 Thread Guan Xuetao
: Aurelien Jarno Signed-off-by: Guan Xuetao --- target-unicore32/helper.c| 331 -- target-unicore32/helper.h| 36 +++--- target-unicore32/op_helper.c | 329 + target-unicore32/translate.c | 28 ++-- 4 files

Re: [Qemu-devel] [PATCH 1/3] target-unicore32: remove cpu_halted()

2011-04-12 Thread Guan Xuetao
Applied. Thanks. Guan Xuetao > -Original Message- > From: Aurelien Jarno [mailto:aurel...@aurel32.net] > Sent: Wednesday, April 13, 2011 6:31 AM > To: qemu-devel@nongnu.org > Cc: Aurelien Jarno; Guan Xuetao > Subject: [PATCH 1/3] target-unicore32: remove cpu_halted

[Qemu-devel] [PATCHv3 3/3] unicore32: necessary modifications for other files to support unicore32

2011-04-12 Thread Guan Xuetao
Signed-off-by: Guan Xuetao --- configure| 11 +++- cpu-exec.c | 12 - default-configs/unicore32-linux-user.mak |1 + elf.h|2 + fpu/softfloat-specialize.h | 10

[Qemu-devel] [PATCHv3 2/3] unicore32: add necessry headers in linux-user/unicore32 for unicore32 support

2011-04-12 Thread Guan Xuetao
Signed-off-by: Guan Xuetao --- linux-user/unicore32/syscall.h | 55 + linux-user/unicore32/syscall_nr.h| 371 ++ linux-user/unicore32/target_signal.h | 26 +++ linux-user/unicore32/termbits.h |2 + 4 files changed, 454 insertions(+), 0

[Qemu-devel] [PATCHv3 0/3] unicore32: add unicore32-linux-user support for qemu 0.14

2011-04-12 Thread Guan Xuetao
e from Blue Swirl Guan Xuetao (3): unicore32: add target-unicore32 directory for unicore32-linux-user support unicore32: add necessry headers in linux-user/unicore32 for unicore32 support unicore32: necessary modifications for other files to support unicore32 con

Re: [Qemu-devel] [PATCH] unicore32: add necessry headers in linux-user/unicore32 for unicore32 support

2011-04-12 Thread Guan Xuetao
Sorry for typo in subject. I will resend the whole patch set at once. Guan > -Original Message- > From: Guan Xuetao [mailto:g...@mprc.pku.edu.cn] > Sent: Tuesday, April 12, 2011 4:05 PM > To: 'Blue Swirl' > Cc: 'qemu-devel@nongnu.org' > Subject: [PAT

[Qemu-devel] [PATCH] unicore32: add necessry headers in linux-user/unicore32 for unicore32 support

2011-04-12 Thread Guan Xuetao
Rebase on the master branch of qemu. Signed-off-by: Guan Xuetao --- configure| 11 +++- cpu-exec.c | 12 - default-configs/unicore32-linux-user.mak |1 + elf.h|2 + fpu/softfloat

[Qemu-devel] [PATCHv2 3/3] unicore32: necessary modifications for other files to support unicore32

2011-03-30 Thread Guan Xuetao
Signed-off-by: Guan Xuetao --- configure| 11 +++- cpu-exec.c | 12 - default-configs/unicore32-linux-user.mak |1 + elf.h|2 + fpu/softfloat-specialize.h | 10

[Qemu-devel] [PATCHv2 2/3] unicore32: add necessry headers in linux-user/unicore32 for unicore32 support

2011-03-30 Thread Guan Xuetao
Signed-off-by: Guan Xuetao --- linux-user/unicore32/syscall.h | 55 + linux-user/unicore32/syscall_nr.h| 371 ++ linux-user/unicore32/target_signal.h | 26 +++ linux-user/unicore32/termbits.h |2 + 4 files changed, 454 insertions(+), 0

[Qemu-devel] [PATCHv2 0/3] unicore32: add unicore32-linux-user support for qemu 0.14

2011-03-30 Thread Guan Xuetao
The patch set adds new unicore32-linux-user support for qemu-stable-0.14 Patch 1 adds target-unicore32 directory Patch 2 adds linux-user/unicore32 directory Patch 3 adds necessary modifications for other files V1 -> V2: changed by advice from Blue Swirl Guan Xuetao (3): unicor

RE: [Qemu-devel] [PATCH 1/3] unicore32: add target-unicore32 directory for unicore32-linux-user support

2011-03-30 Thread Guan Xuetao
> -Original Message- > From: Blue Swirl [mailto:blauwir...@gmail.com] > Sent: Saturday, March 26, 2011 8:51 PM > To: Guan Xuetao > Cc: qemu-devel@nongnu.org > Subject: Re: [Qemu-devel] [PATCH 1/3] unicore32: add target-unicore32 > directory for unicore32-linux-use

[Qemu-devel] [PATCH 2/3] unicore32: add necessary headers in linux-user/unicore32 for unicore32 support

2011-03-24 Thread Guan Xuetao
unicore32: add necessary headers in linux-user/unicore32 for unicore32 support Signed-off-by: Guan Xuetao --- linux-user/unicore32/syscall.h | 55 + linux-user/unicore32/syscall_nr.h| 371 ++ linux-user/unicore32/target_signal.h | 26 +++ linux

[Qemu-devel] [PATCH 3/3] unicore32: necessary modifications for other files to support unicore32

2011-03-24 Thread Guan Xuetao
unicore32: necessary modifications for other files to support unicore32 Signed-off-by: Guan Xuetao --- configure| 11 +++- cpu-exec.c | 12 - default-configs/unicore32-linux-user.mak |1 + elf.h

[Qemu-devel] [PATCH 0/3] unicore32: add unicore32-linux-user support for qemu 0.14

2011-03-24 Thread Guan Xuetao
The patch set adds new unicore32-linux-user support for qemu-stable-0.14 Patch 1 adds target-unicore32 directory Patch 2 adds linux-user/unicore32 directory Patch 3 adds necessary modifications for other files Signed-off-by: Guan Xuetao --- GuanXuetao (3): unicore32: add target

RE: [Qemu-devel] target-unicore32: New ISA support for QEMU

2011-03-24 Thread Guan Xuetao
> -Original Message- > From: Roy Tam [mailto:roy...@gmail.com] > Sent: Thursday, March 24, 2011 2:40 PM > To: Guan Xuetao > Cc: qemu-devel@nongnu.org > Subject: Re: [Qemu-devel] target-unicore32: New ISA support for QEMU > > Hi, > > 2011/3/24 Guan Xuetao :

[Qemu-devel] target-unicore32: New ISA support for QEMU

2011-03-23 Thread Guan Xuetao
Hi, I want to add new ISA (UniCore32) support for QEMU. I have finished unicore32-linux-user development based on qemu-stable-0.14, and will begin unicore32-softmmu work. What need I do for merging it into QEMU? Thanks & Regards. Guan Xuetao 2011/3/24