Skip to content

unicore32: Add unicore32-softmmu support

[email protected] qemu-devel 2 versions – Applied

Status from this message: Thanks, applied all.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest19 patches 1 replyApplied
  2. v119 patches 2 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/19unicore32-softmmu: Add unicore32-softmmu build supportarch_init.c arch_init.h configure +7 more+106 -150 replies
2/19unicore32-softmmu: Add coprocessor 0(sysctrl) and 1(ocd) instruction supporttarget-unicore32/helper.c target-unicore32/helper.h target-unicore32/translate.c+233 -490 replies
3/19unicore32-softmmu: Make UniCore32 cpuid & exceptions correct and runablecpu-exec.c linux-user/main.c target-unicore32/cpu.c +1 more+25 -120 replies
4/19target-unicore32: Drop UC32_CPUID macrostarget-unicore32/cpu.h+0 -40 replies
5/19unicore32-softmmu: Implement softmmu specific functionstarget-unicore32/op_helper.c target-unicore32/softmmu.c+253 -50 replies
6/19unicore32-softmmu: Make sure that kernel can access user spacetarget-unicore32/translate.c+26 -100 replies
7/19unicore32-softmmu: Add puv3 soc/board supportdefault-configs/unicore32-softmmu.mak hw/puv3.c hw/puv3.h +1 more+148 -00 replies
8/19unicore32-softmmu: Add puv3 interrupt supporthw/Makefile.objs hw/puv3.c hw/puv3_intc.c+160 -10 replies
9/19unicore32-softmmu: Add puv3 ostimer supportdefault-configs/unicore32-softmmu.mak hw/Makefile.objs hw/puv3.c +1 more+156 -00 replies
10/19unicore32-softmmu: Add puv3 gpio supporthw/Makefile.objs hw/puv3.c hw/puv3_gpio.c+148 -00 replies
11/19unicore32-softmmu: Add puv3 pm supporthw/Makefile.objs hw/puv3.c hw/puv3_pm.c+151 -00 replies
12/19unicore32-softmmu: Add puv3 dma supporthw/Makefile.objs hw/puv3.c hw/puv3_dma.c+111 -00 replies
13/19unicore32-softmmu: Add ps2 supportdefault-configs/unicore32-softmmu.mak hw/puv3.c+6 -00 replies
14/19unicore32-softmmu: Add maintainer information for UniCore32 machineMAINTAINERS+8 -00 replies
15/19unicore32-softmmu: Add is_default setting for puv3 machinehw/puv3.c+1 -00 replies
16/19unicore32: Split UniCore-F64 instruction helpers from helper.ctarget-unicore32/Makefile.objs target-unicore32/helper.c target-unicore32/ucf64_helper.c+347 -3300 replies
17/19unicore32: Disintegrate cpu_dump_state_ucf64 functiontarget-unicore32/translate.c+25 -160 replies
18/19unicore32: Close dump-option of cpu_dump_state_ucf64 functiontarget-unicore32/translate.c+1 -10 replies
19/19unicore32-softmmu: Add a minimal curses screen supporttarget-unicore32/helper.c+43 -20 replies

Reviews trailers per patch

1 of 19 patches has a Reviewed-by or Acked-by.

PatchGuan Xuetao
1/19
2/19
3/19
4/19A-b
5/19
6/19
7/19
8/19
9/19
10/19
11/19
12/19
13/19
14/19
15/19
16/19
17/19
18/19
19/19

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

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

From: Guan Xuetao <[email protected]>

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 system control modules are simulated, to make linux kernel boot and busybox run in initramfs.

Thanks Andreas Farber, Blue Swirl, Chen Weiren and Dunrong Huang for their priceless advice.

Any advice is greatly appreciated.

Thanks,

Guan Xuetao
---
Andreas Färber (1):
target-unicore32: Drop UC32_CPUID macros

Guan Xuetao (18):
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: Implement softmmu specific functions
unicore32-softmmu: Make sure that kernel can access user space
unicore32-softmmu: Add puv3 soc/board support
unicore32-softmmu: Add puv3 interrupt support
unicore32-softmmu: Add puv3 ostimer support
unicore32-softmmu: Add puv3 gpio support
unicore32-softmmu: Add puv3 pm support
unicore32-softmmu: Add puv3 dma support
unicore32-softmmu: Add ps2 support
unicore32-softmmu: Add maintainer information for UniCore32 machine
unicore32-softmmu: Add is_default setting for puv3 machine
unicore32: Split UniCore-F64 instruction helpers from helper.c
unicore32: Disintegrate cpu_dump_state_ucf64 function
unicore32: Close dump-option of cpu_dump_state_ucf64 function
unicore32-softmmu: Add a minimal curses screen support

 MAINTAINERS                           |    8 +
 arch_init.c                           |    2 +
 arch_init.h                           |    1 +
 configure                             |    1 +
 cpu-exec.c                            |    1 +
 default-configs/unicore32-softmmu.mak |    4 +
 hw/Makefile.objs                      |    7 +
 hw/puv3.c                             |  131 +++++++++
 hw/puv3.h                             |   49 ++++
 hw/puv3_dma.c                         |  109 +++++++
 hw/puv3_gpio.c                        |  141 +++++++++
 hw/puv3_intc.c                        |  135 +++++++++
 hw/puv3_ost.c                         |  151 ++++++++++
 hw/puv3_pm.c                          |  149 ++++++++++
 hw/unicore32/Makefile.objs            |    6 +
 linux-user/main.c                     |    3 +-
 target-unicore32/Makefile.objs        |    4 +-
 target-unicore32/cpu.c                |   19 +-
 target-unicore32/cpu.h                |   18 +-
 target-unicore32/helper.c             |  511 +++++++++++----------------------
 target-unicore32/helper.h             |   17 +-
 target-unicore32/machine.c            |   23 ++
 target-unicore32/op_helper.c          |   44 +++-
 target-unicore32/softmmu.c            |  267 +++++++++++++++++
 target-unicore32/translate.c          |  159 +++++++++--
 target-unicore32/ucf64_helper.c       |  345 ++++++++++++++++++++++
 26 files changed, 1904 insertions(+), 401 deletions(-)
 create mode 100644 default-configs/unicore32-softmmu.mak
 create mode 100644 hw/puv3.c
 create mode 100644 hw/puv3.h
 create mode 100644 hw/puv3_dma.c
 create mode 100644 hw/puv3_gpio.c
 create mode 100644 hw/puv3_intc.c
 create mode 100644 hw/puv3_ost.c
 create mode 100644 hw/puv3_pm.c
 create mode 100644 hw/unicore32/Makefile.objs
 create mode 100644 target-unicore32/machine.c
 create mode 100644 target-unicore32/softmmu.c
 create mode 100644 target-unicore32/ucf64_helper.c