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, > "Richa

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" > > Subj

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] 答复: [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 output compile-testable even

[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, schrieb Andreas Färber: In the initial

[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 UniCore32CPU initfn Normalize

[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 04/14] target-unicore32: Drop UC32_CPUID macros

2012-07-13 Thread Guan Xuetao
From: Andreas Färber afaer...@suse.de Any code that depends on a particular CPU type can now go through callbacks on the QOM UniCore32CPUClass. Signed-off-by: Andreas Färber afaer...@suse.de Acked-by: Guan Xuetao g...@mprc.pku.edu.cn --- target-unicore32/cpu.h |4 1 files changed, 0

[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 g...@mprc.pku.edu.cn --- hw/Makefile.objs |1 + hw/puv3.c|1 + hw/puv3_pm.c | 149

[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 g...@mprc.pku.edu.cn --- target-unicore32/op_helper.c | 22 - target

[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 g...@mprc.pku.edu.cn --- default-configs/unicore32-softmmu.mak |1 + hw/puv3.c |5 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/default-configs

[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 g...@mprc.pku.edu.cn --- default-configs/unicore32-softmmu.mak |1 + hw/Makefile.objs |1 + hw/puv3.c

[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 g...@mprc.pku.edu.cn --- hw/Makefile.objs |1 + hw/puv3.c|6 ++ hw/puv3_gpio.c | 141

[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 g...@mprc.pku.edu.cn --- cpu-exec.c

[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 g...@mprc.pku.edu.cn --- target-unicore32/translate.c | 36 ++-- 1 files changed, 26

[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 g...@mprc.pku.edu.cn --- default-configs/unicore32-softmmu.mak |1 + hw/puv3.c | 93

[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 g...@mprc.pku.edu.cn --- hw/Makefile.objs |1 + hw/puv3.c|1 + hw/puv3_dma.c| 109 ++ 3

[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 g...@mprc.pku.edu.cn --- arch_init.c

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

2012-07-13 Thread Guan Xuetao
Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn --- 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 ag...@suse.de S

[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 g...@mprc.pku.edu.cn --- hw/Makefile.objs |3 + hw/puv3.c| 23 +- hw/puv3_intc.c | 135

[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 g...@mprc.pku.edu.cn --- target-unicore32/helper.c| 185 +- target-unicore32/helper.h| 17 ++--- target-unicore32/translate.c | 80 ++- 3

[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

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 g...@mprc.pku.edu.cn 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 ignored with no harm

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

2012-06-19 Thread Guan Xuetao
On Mon, 2012-06-18 at 20:02 +, Blue Swirl wrote: [snip] diff --git a/hw/puv3.h b/hw/puv3.h new file mode 100644 index 000..bcfc978 --- /dev/null +++ b/hw/puv3.h @@ -0,0 +1,49 @@ +/* + * Misc PKUnity SoC declarations + * + * Copyright (C) 2010-2012 Guan Xuetao

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

2012-06-19 Thread Guan Xuetao
= value; Missing 'break' or a comment about fall through. Yes, 'break' is missed here. Thanks ever so much. Guan Xuetao

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

2012-06-19 Thread Guan Xuetao
and simple way to do it, g_warning()? Guan Xuetao

[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 g...@mprc.pku.edu.cn --- target-unicore32/helper.c| 177 +- target-unicore32/helper.h| 17 ++--- target-unicore32/translate.c | 75 ++- 3 files changed, 221 insertions(+), 48 deletions(-) diff --git

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

2012-06-18 Thread Guan Xuetao
From: Andreas Färber afaer...@suse.de Any code that depends on a particular CPU type can now go through callbacks on the QOM UniCore32CPUClass. Signed-off-by: Andreas Färber afaer...@suse.de Acked-by: Guan Xuetao g...@mprc.pku.edu.cn --- target-unicore32/cpu.h |4 1 files changed, 0

[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 g...@mprc.pku.edu.cn --- arch_init.c

[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 g...@mprc.pku.edu.cn --- hw/Makefile.objs |3 + hw/puv3.c| 23 +- hw/puv3_intc.c | 135

[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 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 g...@mprc.pku.edu.cn --- default-configs/unicore32-softmmu.mak |1 + hw/puv3.c | 93

[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 g...@mprc.pku.edu.cn --- default-configs/unicore32-softmmu.mak |1 + hw/Makefile.objs |1 + hw/puv3.c

[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 g...@mprc.pku.edu.cn --- hw/Makefile.objs |1 + hw/puv3.c|1 + hw/puv3_dma.c| 109 ++ 3

[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 g...@mprc.pku.edu.cn --- cpu-exec.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 g...@mprc.pku.edu.cn --- target-unicore32/translate.c | 36 ++-- 1 files changed, 26

[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 g...@mprc.pku.edu.cn --- target-unicore32/op_helper.c | 22 - target

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

2012-06-18 Thread Guan Xuetao
Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn --- 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 ag...@suse.de S

[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 g...@mprc.pku.edu.cn --- default-configs/unicore32-softmmu.mak |1 + hw/puv3.c |5 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/default-configs

[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 g...@mprc.pku.edu.cn --- hw/Makefile.objs |1 + hw/puv3.c|6 ++ hw/puv3_gpio.c | 141

[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 g...@mprc.pku.edu.cn --- hw/Makefile.objs |1 + hw/puv3.c|1 + hw/puv3_pm.c | 148 ++ 3 files

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

2012-06-17 Thread Guan Xuetao
that. :) Regards, chenwj Done, thx. Regards Guan Xuetao

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 devices simulation codes

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 ignored with no harm. Coprocessor 1 is OCD

[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 g

[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 g...@mprc.pku.edu.cn --- target-unicore32/op_helper.c | 22 - target

[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 g...@mprc.pku.edu.cn --- Makefile.objs |1 + hw/puv3.c |6 ++ hw/puv3_gpio.c | 141

[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 g...@mprc.pku.edu.cn --- Makefile.target |1 + default-configs/unicore32-softmmu.mak |1 + hw/puv3.c

[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 g...@mprc.pku.edu.cn --- Makefile.target

[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 g...@mprc.pku.edu.cn --- default-configs/unicore32-softmmu.mak |1 + hw/puv3.c |5 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/default-configs

[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 g...@mprc.pku.edu.cn --- target-unicore32/helper.c| 185 -- target-unicore32/helper.h| 15 ++-- target-unicore32/translate.c | 75 +- 3 files changed, 223 insertions(+), 52 deletions(-) diff --git

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

2012-06-15 Thread Guan Xuetao
is 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 unicore32-softmmu

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

2012-06-15 Thread Guan Xuetao
Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn --- 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 ag...@suse.de S

[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 g...@mprc.pku.edu.cn --- Makefile.objs |1 + default-configs/unicore32-softmmu.mak |1 + hw/puv3.c

[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 g...@mprc.pku.edu.cn --- Makefile.objs |1 + hw/puv3.c |1 + hw/puv3_dma.c | 109 + 3 files

[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 g...@mprc.pku.edu.cn --- Makefile.objs |1 + hw/puv3.c |1 + hw/puv3_pm.c | 148 + 3 files changed

[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 g...@mprc.pku.edu.cn --- target-unicore32/translate.c | 36 ++-- 1 files changed, 26

[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 g...@mprc.pku.edu.cn --- Makefile.objs |3 + hw/puv3.c | 23 +- hw/puv3_intc.c | 135

[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 g...@mprc.pku.edu.cn --- 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

[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 g...@mprc.pku.edu.cn --- cpu-exec.c |1 + linux-user/main.c |3 ++- target-unicore32/cpu.h |6 -- 3 files changed

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

2012-05-25 Thread Guan Xuetao
* - * 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 General Public License version 2 as @@ -15,6 +15,14 @@ #define SIGNBIT (uint32_t)0x8000 #define SIGNBIT64

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

2012-05-25 Thread Guan Xuetao
Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn --- 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 ag...@suse.de S

[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 g...@mprc.pku.edu.cn --- Makefile.target |5

[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 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 g...@mprc.pku.edu.cn --- target-unicore32/helper.c | 25 ++-- target-unicore32/uc32_softmmu.c | 267

[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 g...@mprc.pku.edu.cn --- hw/pkunity/puv3.c | 130 + hw/pkunity/puv3.h | 49

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

2012-05-25 Thread Guan Xuetao
Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn --- 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

[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 g...@mprc.pku.edu.cn --- target-unicore32/machine.c | 99 1 files

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

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

2012-03-30 Thread Guan Xuetao
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 qom-cpu-unicore32.v2 https

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

2012-03-30 Thread Guan Xuetao
as * published by the Free 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 g...@mprc.pku.edu.cn

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ärberafaer...@suse.de Acked-by: Guan Xuetao g...@mprc.pku.edu.cn --- Makefile.target|1 + target-unicore32/cpu-qom.h

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ärberafaer...@suse.de Acked-by: Guan Xuetao g...@mprc.pku.edu.cn --- target-unicore32/cpu.c| 14 ++ target-unicore32/helper.c

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+. Signed-off-by: Andreas Färber afaer...@suse.de

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

2012-03-14 Thread Guan Xuetao
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 target-unicore32 files from GPLv2 to GPLv2+. Anthony had

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 +++- 5 files changed, 172

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

2012-02-13 Thread Guan Xuetao
to have that under a future-proof license. Thanks for your help. I wanted to add full simulation for unicore32 for almost one year, but this work is still 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 Xuetaog...@mprc.pku.edu.cn 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 casts

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

2011-04-13 Thread Guan Xuetao
. Signed-off-by: Aurelien Jarno aurel...@aurel32.net Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn --- target-unicore32/helper.c| 331 -- target-unicore32/helper.h| 36 +++--- target-unicore32/op_helper.c | 329

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

2011-04-13 Thread Guan Xuetao
Applied, thanks. Tested-and-Acked-by: Guan Xuetao g...@mprc.pku.edu.cn 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-unicore32

[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 g...@mprc.pku.edu.cn --- configure| 11 +++- cpu-exec.c | 12 - default-configs/unicore32-linux-user.mak |1 + elf.h|2

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: [PATCH] unicore32: add necessry headers in linux

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

2011-04-12 Thread Guan Xuetao
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 configure

[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 g...@mprc.pku.edu.cn --- 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

[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 g...@mprc.pku.edu.cn --- configure| 11 +++- cpu-exec.c | 12 - default-configs/unicore32-linux-user.mak |1 + elf.h|2 + fpu/softfloat-specialize.h

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() cpu_halted() has been

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-user support On Thu, Mar 24

[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): unicore32

[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 g...@mprc.pku.edu.cn --- 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

[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 g...@mprc.pku.edu.cn --- configure| 11 +++- cpu-exec.c | 12 - default-configs/unicore32-linux-user.mak |1 + elf.h|2 + fpu/softfloat-specialize.h

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

2011-03-24 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

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 g...@mprc.pku.edu.cn: Hi, I want

[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 g...@mprc.pku.edu.cn --- GuanXuetao (3

[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 g...@mprc.pku.edu.cn --- configure| 11 +++- cpu-exec.c | 12 - default-configs/unicore32-linux-user.mak |1 + elf.h

[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 g...@mprc.pku.edu.cn --- linux-user/unicore32/syscall.h | 55 + linux-user/unicore32/syscall_nr.h| 371 ++ linux-user/unicore32