Skip to content

target/openrisc updates

Richard Henderson openrisc qemu-devel qemu-trivial 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest21 of 22 patches 6 repliesIn review

21 of 22 patches are in this archive. The cover letter announces 22.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/22target/openrisc: Rename the cpu from or32 to or1kconfigure default-configs/or1k-linux-user.mak default-configs/or1k-softmmu.mak +5 more+13 -130 replies
3/22linux-user: Fix openrisc cpu_looplinux-user/main.c+41 -540 replies
4/22target/openrisc: Fix exception handling status registerstarget/openrisc/interrupt.c+7 -00 replies
5/22target/openrisc: Implement lwa, swatarget/openrisc/cpu.c target/openrisc/cpu.h target/openrisc/interrupt.c +4 more+81 -80 replies
6/22target/openrisc: Tidy insn dumpingtarget/openrisc/translate.c+12 -241 reply
7/22target/openrisc: Rationalize immediate extractiontarget/openrisc/translate.c+40 -580 replies
8/22target/openrisc: Streamline arithmetic and OVEtarget/openrisc/Makefile.objs target/openrisc/exception_helper.c target/openrisc/helper.h +2 more+191 -3140 replies
9/22target/openrisc: Put SR[OVE] in TB flagstarget/openrisc/cpu.h target/openrisc/exception_helper.c target/openrisc/translate.c+18 -120 replies
10/22target/openrisc: Invert the decoding in dec_calctarget/openrisc/translate.c+95 -2070 replies
11/22target/openrisc: Keep SR_F in a separate variabletarget/openrisc/cpu.h target/openrisc/gdbstub.c target/openrisc/interrupt.c +4 more+96 -740 replies
12/22target/openrisc: Keep SR_CY and SR_OV in a separate variablestarget/openrisc/cpu.h target/openrisc/exception_helper.c target/openrisc/helper.h +1 more+78 -890 replies
13/22target/openrisc: Use movcond where appropriatetarget/openrisc/translate.c+14 -140 replies
14/22target/openrisc: Set flags on helperstarget/openrisc/helper.h+12 -121 reply
15/22target/openrisc: Enable trap, csync, msync, psync for user modetarget/openrisc/translate.c+0 -321 reply
16/22target/openrisc: Implement msynctarget/openrisc/translate.c+1 -00 replies
17/22target/openrisc: Represent MACHI:MACLO as a single unittarget/openrisc/cpu.h target/openrisc/machine.c target/openrisc/sys_helper.c +1 more+80 -610 replies
18/22target/openrisc: Implement muld, muldu, macu, msbutarget/openrisc/translate.c+108 -00 replies
19/22target/openrisc: Fix maddtarget/openrisc/cpu.h target/openrisc/fpu_helper.c target/openrisc/helper.h +1 more+30 -610 replies
20/22target/openrisc: Optimize l.jal to nexttarget/openrisc/translate.c+5 -11 reply
21/22target/openrisc: Tidy ppc/npc implementationtarget/openrisc/cpu.h target/openrisc/gdbstub.c target/openrisc/interrupt_helper.c +3 more+39 -550 replies
22/22target/openrisc: Tidy handling of delayed branchestarget/openrisc/cpu.h target/openrisc/gdbstub.c target/openrisc/interrupt.c +2 more+25 -350 replies

Reviews trailers per patch

12 of 21 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchBastian KoppelmannPhilippe Mathieu-DaudéStafford Horne
SeriesR-b
1/22
3/22
4/22
5/22
6/22R-b R-b
7/22R-b
8/22R-b
9/22
10/22R-b
11/22R-b
12/22
13/22R-b
14/22R-b R-b
15/22R-b R-b
16/22
17/22R-b
18/22R-b
19/22R-b
20/22R-b
21/22
22/22

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/22] target/openrisc updates

The bulk of this patch set is 2-3 years old, and was mostly reviewed by Bastian Koppelmann. But it languished because there were reports of it not booting kernel images, and I had problems putting together a set of tools that could even build a kernel.

The OpenRISC community has picked up activity recently, with Stafford Horne upstreaming some of the compiler tools. He has even done some testing for me of this patch set.

r~

Richard Henderson (21):
target/openrisc: Rename the cpu from or32 to or1k
linux-user: Add MMAP_SHIFT for openrisc
linux-user: Fix openrisc cpu_loop
target/openrisc: Implement lwa, swa
target/openrisc: Tidy insn dumping
target/openrisc: Rationalize immediate extraction target/openrisc: Streamline arithmetic and OVE target/openrisc: Put SR[OVE] in TB flags target/openrisc: Invert the decoding in dec_calc target/openrisc: Keep SR_F in a separate variable target/openrisc: Keep SR_CY and SR_OV in a separate variables target/openrisc: Use movcond where appropriate target/openrisc: Set flags on helpers target/openrisc: Enable trap, csync, msync, psync for user mode target/openrisc: Implement msync
target/openrisc: Represent MACHI:MACLO as a single unit target/openrisc: Implement muld, muldu, macu, msbu target/openrisc: Fix madd
target/openrisc: Optimize l.jal to next target/openrisc: Tidy ppc/npc implementation target/openrisc: Tidy handling of delayed branches

Stafford Horne (1):
target/openrisc: Fix exception handling status registers

 configure                            |    6 +-
 default-configs/or1k-linux-user.mak  |    1 +
 default-configs/or1k-softmmu.mak     |    4 +
 default-configs/or32-linux-user.mak  |    1 -
 default-configs/or32-softmmu.mak     |    4 -
 hw/openrisc/openrisc_sim.c           |    4 +-
 linux-user/main.c                    |   95 ++-
 linux-user/openrisc/target_syscall.h |    2 +
 target/openrisc/Makefile.objs        |    2 +-
 target/openrisc/cpu.c                |    1 +
 target/openrisc/cpu.h                |   47 +-
 target/openrisc/exception_helper.c   |   31 +
 target/openrisc/fpu_helper.c         |   68 +-
 target/openrisc/gdbstub.c            |   17 +-
 target/openrisc/helper.h             |   33 +-
 target/openrisc/int_helper.c         |   61 --
 target/openrisc/interrupt.c          |   14 +-
 target/openrisc/interrupt_helper.c   |    4 +-
 target/openrisc/machine.c            |   62 +-
 target/openrisc/mmu.c                |    1 +
 target/openrisc/sys_helper.c         |   62 +-
 target/openrisc/translate.c          | 1314 +++++++++++++++-------------------
 tests/tcg/openrisc/Makefile          |    4 +-
 23 files changed, 851 insertions(+), 987 deletions(-)
 create mode 100644 default-configs/or1k-linux-user.mak
 create mode 100644 default-configs/or1k-softmmu.mak
 delete mode 100644 default-configs/or32-linux-user.mak
 delete mode 100644 default-configs/or32-softmmu.mak
 delete mode 100644 target/openrisc/int_helper.c
Signature · 1 line
2.9.3