[Qemu-devel] [PATCHv2 04/19] target-unicore32: Drop UC32_CPUID macros

2012-08-10 Thread gxt
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] [PATCHv2 03/19] unicore32-softmmu: Make UniCore32 cpuid exceptions correct and runable

2012-08-10 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn 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

[Qemu-devel] [PATCHv2 07/19] unicore32-softmmu: Add puv3 soc/board support

2012-08-10 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn 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 |

[Qemu-devel] [PATCHv2 08/19] unicore32-softmmu: Add puv3 interrupt support

2012-08-10 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn 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

[Qemu-devel] [PATCHv2 16/19] unicore32: Split UniCore-F64 instruction helpers from helper.c

2012-08-10 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn This patch just splits ucf64 instruction simulation helpers from helper.c. Also, two checkpatch warnings are solved. v1-v2: adjust copyright information for new ucf64_helper.c Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn ---

[Qemu-devel] [PATCHv2 19/19] unicore32-softmmu: Add a minimal curses screen support

2012-08-10 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn This patch adds a minimal curses screen support for unicore32-softmmu. We assume 80*30 screen size to minimize the implementation. Two problems are not solved, but they are innocuous. 1. curses windows will be blank when switching to monitor screen and back

[Qemu-devel] [PATCHv2 15/19] unicore32-softmmu: Add is_default setting for puv3 machine

2012-08-10 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn This patch sets is_default to 1 for puv3 machine, so that find_default_machine() returns puv3 machine. Thanks Dunrong for pointing it out. Cc: Dunrong Huang riegama...@gmail.com Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn --- hw/puv3.c |1 + 1

[Qemu-devel] [PATCHv2 18/19] unicore32: Close dump-option of cpu_dump_state_ucf64 function

2012-08-10 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn Since of tedious output, we close dump-option of cpu_dump_state_ucf64 function. Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn --- target-unicore32/translate.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

[Qemu-devel] [PATCHv2 12/19] unicore32-softmmu: Add puv3 dma support

2012-08-10 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn This patch adds puv3 dma (Direct Memory Access) support, include dma device simulation for kernel booting. v1-v2: Add initialization to ret in puv3_dma_read. Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn --- hw/Makefile.objs |1 + hw/puv3.c|

[Qemu-devel] [PATCHv2 17/19] unicore32: Disintegrate cpu_dump_state_ucf64 function

2012-08-10 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn This patch disintegrates cpu_dump_state_ucf64 function from cpu_dump_state. Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn --- target-unicore32/translate.c | 41 + 1 files changed, 25 insertions(+), 16

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

2012-08-10 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn 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. By 20120804: change

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

2012-08-10 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn 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 (on-chip-debugger), which is used for faked console, so we could output

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

2012-08-10 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn 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 2d219d2..708ad54 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -405,6 +405,14 @@

[Qemu-devel] [PATCHv2 05/19] unicore32-softmmu: Implement softmmu specific functions

2012-08-10 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn 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 ---

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

2012-08-10 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn 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

[Qemu-devel] [PATCHv2 10/19] unicore32-softmmu: Add puv3 gpio support

2012-08-10 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn This patch adds puv3 gpio (General Purpose Input/Output) support, include gpio device simulation and its interrupt support. v1-v2: Add initialization to ret in puv3_gpio_read. Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn --- hw/Makefile.objs |1 +

[Qemu-devel] [PATCHv2 09/19] unicore32-softmmu: Add puv3 ostimer support

2012-08-10 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn 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 +

[Qemu-devel] [PATCHv2 11/19] unicore32-softmmu: Add puv3 pm support

2012-08-10 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn This patch adds puv3 pm (power management) support, include pm device simulation for kernel booting. Thank Blue Swirl for pointing out the missing break. v1-v2: Add initialization to ret in puv3_pm_read. Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn ---

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

2012-08-10 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn 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

[Qemu-devel] [PATCHv2 00/19] unicore32: Add unicore32-softmmu support

2012-08-10 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn These patches implement softmmu support on unicore32 architecture. v1-v2: Correct maybe-uninitialized warning in gpio/pm/dma handlers. UniCore32 CPU is embedded in PKUnity-3 SoC, so we add necessary puv3 devices simulation codes together. Only minimal

[Qemu-devel] [PATCH 01/19] unicore32-softmmu: Add unicore32-softmmu build support

2012-08-07 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn 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. By 20120804: change

[Qemu-devel] [PATCH 00/19] unicore32: Add unicore32-softmmu support

2012-08-07 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn These patches implement softmmu support on unicore32 architecture. Based on master branch of qemu, these patches can be fetched from: git://github.com/gxt/QEMU.git for-review UniCore32 CPU is embedded in PKUnity-3 SoC, so we add necessary puv3 devices

[Qemu-devel] [PATCH 03/19] unicore32-softmmu: Make UniCore32 cpuid exceptions correct and runable

2012-08-07 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn 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

[Qemu-devel] [PATCH 10/19] unicore32-softmmu: Add puv3 gpio support

2012-08-07 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn 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] [PATCH 08/19] unicore32-softmmu: Add puv3 interrupt support

2012-08-07 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn 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

[Qemu-devel] [PATCH 17/19] unicore32: Disintegrate cpu_dump_state_ucf64 function

2012-08-07 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn This patch disintegrates cpu_dump_state_ucf64 function from cpu_dump_state. Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn --- target-unicore32/translate.c | 41 + 1 files changed, 25 insertions(+), 16

[Qemu-devel] [PATCH 19/19] unicore32-softmmu: Add a minimal curses screen support

2012-08-07 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn This patch adds a minimal curses screen support for unicore32-softmmu. We assume 80*30 screen size to minimize the implementation. Two problems are not solved, but they are innocuous. 1. curses windows will be blank when switching to monitor screen and back

[Qemu-devel] [PATCH 16/19] unicore32: Split UniCore-F64 instruction helpers from helper.c

2012-08-07 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn This patch just splits ucf64 instruction simulation helpers from helper.c. Also, two checkpatch warnings are solved. v1-v2: adjust copyright information for new ucf64_helper.c Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn ---

[Qemu-devel] [PATCH 15/19] unicore32-softmmu: Add is_default setting for puv3 machine

2012-08-07 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn This patch sets is_default to 1 for puv3 machine, so that find_default_machine() returns puv3 machine. Thanks Dunrong for pointing it out. Cc: Dunrong Huang riegama...@gmail.com Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn --- hw/puv3.c |1 + 1

[Qemu-devel] [PATCH 18/19] unicore32: Close dump-option of cpu_dump_state_ucf64 function

2012-08-07 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn Since of tedious output, we close dump-option of cpu_dump_state_ucf64 function. Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn --- target-unicore32/translate.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

[Qemu-devel] [PATCH 07/19] unicore32-softmmu: Add puv3 soc/board support

2012-08-07 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn 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 |

[Qemu-devel] [PATCH 05/19] unicore32-softmmu: Implement softmmu specific functions

2012-08-07 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn 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 ---

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

2012-08-07 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn 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 2d219d2..708ad54 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -405,6 +405,14 @@

[Qemu-devel] [PATCH 04/19] target-unicore32: Drop UC32_CPUID macros

2012-08-07 Thread gxt
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] [PATCH 13/19] unicore32-softmmu: Add ps2 support

2012-08-07 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn 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

[Qemu-devel] [PATCH 11/19] unicore32-softmmu: Add puv3 pm support

2012-08-07 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn 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

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

2012-08-07 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn 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

[Qemu-devel] [PATCH 12/19] unicore32-softmmu: Add puv3 dma support

2012-08-07 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn 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

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

2012-08-07 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn 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 (on-chip-debugger), which is used for faked console, so we could output

[Qemu-devel] [PATCH 09/19] unicore32-softmmu: Add puv3 ostimer support

2012-08-07 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn 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 +

[Qemu-devel] [PATCHv3 2/3] unicore32: Disintegrate cpu_dump_state_ucf64 function

2012-07-31 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn This patch disintegrates cpu_dump_state_ucf64 function from cpu_dump_state. Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn --- target-unicore32/translate.c | 41 + 1 files changed, 25 insertions(+), 16

[Qemu-devel] [PATCHv3 1/3] unicore32: Split UniCore-F64 instruction helpers from helper.c

2012-07-31 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn This patch just splits ucf64 instruction simulation helpers from helper.c. Also, two checkpatch warnings are solved. v1-v2: adjust copyright information for new ucf64_helper.c Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn ---

[Qemu-devel] [PATCHv3 3/3] unicore32: Close dump-option of cpu_dump_state_ucf64 function

2012-07-31 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn Since of tedious output, we close dump-option of cpu_dump_state_ucf64 function. Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn --- target-unicore32/translate.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

[Qemu-devel] [PATCHv2] unicore32-softmmu: Add a minimal curses screen support

2012-07-31 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn This patch adds a minimal curses screen support for unicore32-softmmu. We assume 80*30 screen size to minimize the implementation. Two problems are not solved, but they are innocuous. 1. curses windows will be blank when switching to monitor screen and back

[Qemu-devel] [RESEND PULL REQUEST] UniCore32 PUV3 machine support

2012-07-31 Thread gxt
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 (14): unicore32-softmmu: Add unicore32-softmmu build support unicore32-softmmu: Add coprocessor 0(sysctrl) and 1(ocd

[Qemu-devel] [PATCHv2 2/2] unicore32: Disintegrate cpu_dump_state_ucf64 function

2012-07-25 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn This patch disintegrates cpu_dump_state_ucf64 function from cpu_dump_state. Since of tedious output, we close this dump in its default state. Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn --- target-unicore32/translate.c | 41

[Qemu-devel] [PATCHv2 1/2] unicore32: Split UniCore-F64 instruction helpers from helper.c

2012-07-25 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn This patch just splits ucf64 instruction simulation helpers from helper.c. Also, two checkpatch warnings are solved. v1-v2: adjust copyright information for new ucf64_helper.c Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn ---

[Qemu-devel] [PATCH] unicore32-softmmu: Add a minimal curses screen support

2012-07-25 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn This patch adds a minimal curses screen support for unicore32-softmmu. We assume 80*30 screen size to minimize the implementation. Two problems are not solved, but they are innocuous. 1. curses windows will be blank when switching to monitor screen and back

[Qemu-devel] [PULL] UniCore32 PUV3 machine support

2012-07-22 Thread gxt
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] [PATCH] unicore32-softmmu: Add is_default setting for puv3 machine

2012-07-20 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn This patch sets is_default to 1 for puv3 machine, so that find_default_machine() returns puv3 machine. Thanks Dunrong for pointing it out. Cc: Dunrong Huang riegama...@gmail.com Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn --- hw/puv3.c |1 + 1

[Qemu-devel] [PATCH] unicore32: Split UniCore-F64 instruction helpers from helper.c

2012-07-20 Thread gxt
From: Guan Xuetao g...@mprc.pku.edu.cn This patch just splits ucf64 instruction simulation helpers from helper.c. Also, two checkpatch warnings are solved. Signed-off-by: Guan Xuetao g...@mprc.pku.edu.cn --- target-unicore32/Makefile.objs |2 + target-unicore32/helper.c | 330