Skip to content

target-openrisc improvements

Richard Henderson qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest17 patches 24 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17target-openrisc: Always enable OPENRISC_DISAStarget-openrisc/translate.c+4 -161 reply
2/17target-openrisc: Streamline arithmetic and OVEtarget-openrisc/exception_helper.c target-openrisc/helper.h target-openrisc/translate.c+190 -2493 replies
3/17target-openrisc: Invert the decoding in dec_calctarget-openrisc/translate.c+94 -2061 reply
4/17target-openrisc: Keep SR_F in a separate variabletarget-openrisc/cpu.h target-openrisc/gdbstub.c target-openrisc/interrupt.c +3 more+56 -681 reply
5/17target-openrisc: Use movcond where appropriatetarget-openrisc/translate.c+14 -141 reply
6/17target-openrisc: Put SR[OVE] in TB flagstarget-openrisc/cpu.h target-openrisc/exception_helper.c target-openrisc/translate.c+18 -122 replies
7/17target-openrisc: Keep SR_CY and SR_OV in a separate variablestarget-openrisc/cpu.h target-openrisc/exception_helper.c target-openrisc/helper.h +2 more+78 -1271 reply
8/17target-openrisc: Set flags on helperstarget-openrisc/helper.h+14 -141 reply
9/17target-openrisc: Implement ff1 and fl1 for 64-bittarget-openrisc/int_helper.c+12 -111 reply
10/17target-openrisc: Represent MACHI:MACLO as a single unittarget-openrisc/cpu.h target-openrisc/sys_helper.c target-openrisc/translate.c+78 -581 reply
11/17target-openrisc: Rationalize immediate extractiontarget-openrisc/translate.c+75 -1251 reply
12/17target-openrisc: Enable m[tf]spr from user modetarget-openrisc/helper.h target-openrisc/sys_helper.c target-openrisc/translate.c+43 -705 replies
13/17target-openrisc: Enable trap, csync, msync, psync for user modetarget-openrisc/translate.c+0 -321 reply
14/17target-openrisc: Implement muld, muldu, macu, msbutarget-openrisc/translate.c+106 -01 reply
15/17target-openrisc: Fix maddtarget-openrisc/cpu.h target-openrisc/fpu_helper.c target-openrisc/helper.h +1 more+30 -611 reply
16/17target-openrisc: Write back result before FPE exceptiontarget-openrisc/fpu_helper.c target-openrisc/helper.h target-openrisc/translate.c+129 -2661 reply
17/17target-openrisc: Implement lwa, swalinux-user/main.c target-openrisc/cpu.c target-openrisc/cpu.h +4 more+128 -01 reply

Reviews trailers per patch

14 of 17 patches have a Reviewed-by or Acked-by.

PatchBastian Koppelmann
1/17R-b
2/17R-b
3/17R-b
4/17R-b
5/17R-b
6/17
7/17R-b
8/17R-b
9/17R-b
10/17R-b
11/17R-b
12/17
13/17R-b
14/17R-b
15/17R-b
16/17R-b
17/17

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

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/17] target-openrisc improvements

This is a refresh of a branch I worked on in February, but I don't believe was ever posted. I'm doing so now in order to flush my set of uncommitted branches.

The openrisc target is in terrible shape and, as far as I can tell from the opencores mailing list, no one uses it. The fact that it's missing so many of the instructions in the ISA, so many that we cannot execute the musl libc, is proof of that.

This patch set should probably be reviewed and merged, or we should drop the whole target.

r~

Richard Henderson (17):
target-openrisc: Always enable OPENRISC_DISAS
target-openrisc: Streamline arithmetic and OVE
target-openrisc: Invert the decoding in dec_calc
target-openrisc: Keep SR_F in a separate variable
target-openrisc: Use movcond where appropriate
target-openrisc: Put SR[OVE] in TB flags
target-openrisc: Keep SR_CY and SR_OV in a separate variables
target-openrisc: Set flags on helpers
target-openrisc: Implement ff1 and fl1 for 64-bit
target-openrisc: Represent MACHI:MACLO as a single unit
target-openrisc: Rationalize immediate extraction
target-openrisc: Enable m[tf]spr from user mode
target-openrisc: Enable trap, csync, msync, psync for user mode
target-openrisc: Implement muld, muldu, macu, msbu
target-openrisc: Fix madd
target-openrisc: Write back result before FPE exception
target-openrisc: Implement lwa, swa

 linux-user/main.c                  |   45 ++
 target-openrisc/cpu.c              |    1 +
 target-openrisc/cpu.h              |   41 +-
 target-openrisc/exception_helper.c |   31 +
 target-openrisc/fpu_helper.c       |  286 ++-----
 target-openrisc/gdbstub.c          |    4 +-
 target-openrisc/helper.h           |   42 +-
 target-openrisc/int_helper.c       |   57 +-
 target-openrisc/interrupt.c        |    3 +-
 target-openrisc/interrupt_helper.c |    3 +-
 target-openrisc/mmu.c              |    1 +
 target-openrisc/sys_helper.c       |   69 +-
 target-openrisc/translate.c        | 1443 ++++++++++++++++--------------------
 13 files changed, 883 insertions(+), 1143 deletions(-)
Signature · 1 line
2.4.3