Skip to content

target/mips: Re-introduce the R5900 CPU (system) + sort tcg tests

Philippe Mathieu-Daudé qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest9 patches 24 repliesIn review

Changes in v2 from the cover letter

- rebased
- added freestanding libc stubs
- o32/n32 tests

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9target/mips: Re-introduce the R5900 CPU in system modetarget/mips/cpu-defs.c.inc+45 -01 reply
2/9target/mips/tx79: Fix PCGT* (Parallel Compare for Greater Than)target/mips/tcg/tx79_translate.c+5 -51 reply
3/9tests/guest-debug: Allow placing the binary within system QEMU argstests/guest-debug/run-test.py+7 -23 replies
4/9tests/tcg/mips64el: Add bare-metal harness for R5900 system teststests/tcg/mips64el/meson.build tests/tcg/mips64el/system/boot.S tests/tcg/mips64el/system/harness.c +7 more+252 -04 replies
5/9tests/tcg/mips64el: Move R5900 tests to system mode and build with mesontests/tcg/mips/user/isa/r5900/Makefile tests/tcg/mips/user/isa/r5900/README tests/tcg/mips64el/system/meson.build +8 more+20 -383 replies
6/9target/mips: Factor mips_gdb_read_value() outtarget/mips/gdbstub.c+16 -41 reply
7/9target/mips: Describe gdbstub registers with XML featuresMAINTAINERS configs/targets/mips-linux-user.mak configs/targets/mips-softmmu.mak +17 more+287 -01 reply
8/9target/mips: Expose R5900 registers to gdbconfigs/targets/mips64-softmmu.mak configs/targets/mips64el-softmmu.mak gdbstub/gdb-xml/mips64-r5900.xml +1 more+95 -21 reply
9/9tests/tcg/mips64el: Add a TX79 instruction test in system modetests/tcg/mips64el/system/meson.build tests/tcg/mips64el/system/test_r5900_tx79.c+486 -01 reply

Reviews trailers per patch

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

PatchMaciej W. RozyckiPierrick BouvierGustavo Romero
SeriesR-b
1/9R-b
2/9R-b
3/9R-b
4/9Inspired-by R-b
5/9R-b
6/9R-b
7/9R-b
8/9R-b
9/9R-b

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 v2 thread

Cover letter [PATCH v2 0/9] target/mips: Re-introduce the R5900 CPU (system) + sort tcg tests

Add R5900 system tests, code is covered, CPU can come back, allowing to fix a bug on PCGT opcode.

Since [v1]:
- rebased
- added freestanding libc stubs
- o32/n32 tests

[v1]: https://lore.kernel.org/qemu-devel/[email protected]/

Philippe Mathieu-Daudé (9):
target/mips: Re-introduce the R5900 CPU in system mode target/mips/tx79: Fix PCGT* (Parallel Compare for Greater Than) tests/guest-debug: Allow placing the binary within system QEMU args tests/tcg/mips64el: Add bare-metal harness for R5900 system tests tests/tcg/mips64el: Move R5900 tests to system mode and build with
meson
target/mips: Factor mips_gdb_read_value() out target/mips: Describe gdbstub registers with XML features target/mips: Expose R5900 registers to gdb tests/tcg/mips64el: Add a TX79 instruction test in system mode

 MAINTAINERS                                   |   1 +
 configs/targets/mips-linux-user.mak           |   1 +
 configs/targets/mips-softmmu.mak              |   1 +
 configs/targets/mips64-linux-user.mak         |   1 +
 configs/targets/mips64-softmmu.mak            |   1 +
 configs/targets/mips64el-linux-user.mak       |   1 +
 configs/targets/mips64el-softmmu.mak          |   1 +
 configs/targets/mipsel-linux-user.mak         |   1 +
 configs/targets/mipsel-softmmu.mak            |   1 +
 configs/targets/mipsn32-linux-user.mak        |   1 +
 configs/targets/mipsn32el-linux-user.mak      |   1 +
 target/mips/internal.h                        |   2 +
 tests/tcg/mips64el/system/include/assert.h    |  15 +
 tests/tcg/mips64el/system/include/inttypes.h  |   7 +
 tests/tcg/mips64el/system/include/stdio.h     |  17 +
 tests/tcg/mips64el/system/include/string.h    |  16 +
 target/mips/cpu.c                             |   4 +
 target/mips/gdbstub.c                         | 152 +++++-
 target/mips/tcg/tx79_translate.c              |  10 +-
 tests/tcg/mips64el/system/harness.c           |  66 +++
 .../system}/test_r5900_div1.c                 |   0
 .../system}/test_r5900_divu1.c                |   0
 .../system}/test_r5900_madd.c                 |   0
 .../system}/test_r5900_maddu.c                |   0
 .../system}/test_r5900_mflohi1.c              |   0
 .../system}/test_r5900_mtlohi1.c              |   0
 .../system}/test_r5900_mult.c                 |   0
 .../system}/test_r5900_multu.c                |   0
 tests/tcg/mips64el/system/test_r5900_tx79.c   | 477 ++++++++++++++++++
 target/mips/cpu-defs.c.inc                    |  45 ++
 gdbstub/gdb-xml/mips32-cp0.xml                |   9 +
 gdbstub/gdb-xml/mips32-cpu.xml                |  42 ++
 gdbstub/gdb-xml/mips32-fpu.xml                |  41 ++
 gdbstub/gdb-xml/mips64-cp0.xml                |   9 +
 gdbstub/gdb-xml/mips64-cpu.xml                |  42 ++
 gdbstub/gdb-xml/mips64-fpu.xml                |  41 ++
 gdbstub/gdb-xml/mips64-r5900.xml              |  47 ++
 tests/guest-debug/run-test.py                 |   9 +-
 tests/tcg/mips/user/isa/r5900/Makefile        |  32 --
 tests/tcg/mips/user/isa/r5900/README          |   6 -
 tests/tcg/mips64el/meson.build                |   2 +
 tests/tcg/mips64el/system/boot.S              |  23 +
 tests/tcg/mips64el/system/kernel.ld           |  43 ++
 tests/tcg/mips64el/system/meson.build         |  62 +++
 tests/tcg/mips64el/system/test-r5900.py       |  30 ++
 45 files changed, 1211 insertions(+), 49 deletions(-)
 create mode 100644 tests/tcg/mips64el/system/include/assert.h
 create mode 100644 tests/tcg/mips64el/system/include/inttypes.h
 create mode 100644 tests/tcg/mips64el/system/include/stdio.h
 create mode 100644 tests/tcg/mips64el/system/include/string.h
 create mode 100644 tests/tcg/mips64el/system/harness.c
 rename tests/tcg/{mips/user/isa/r5900 => mips64el/system}/test_r5900_div1.c (100%)
 rename tests/tcg/{mips/user/isa/r5900 => mips64el/system}/test_r5900_divu1.c (100%)
 rename tests/tcg/{mips/user/isa/r5900 => mips64el/system}/test_r5900_madd.c (100%)
 rename tests/tcg/{mips/user/isa/r5900 => mips64el/system}/test_r5900_maddu.c (100%)
 rename tests/tcg/{mips/user/isa/r5900 => mips64el/system}/test_r5900_mflohi1.c (100%)
 rename tests/tcg/{mips/user/isa/r5900 => mips64el/system}/test_r5900_mtlohi1.c (100%)
 rename tests/tcg/{mips/user/isa/r5900 => mips64el/system}/test_r5900_mult.c (100%)
 rename tests/tcg/{mips/user/isa/r5900 => mips64el/system}/test_r5900_multu.c (100%)
 create mode 100644 tests/tcg/mips64el/system/test_r5900_tx79.c
 create mode 100644 gdbstub/gdb-xml/mips32-cp0.xml
 create mode 100644 gdbstub/gdb-xml/mips32-cpu.xml
 create mode 100644 gdbstub/gdb-xml/mips32-fpu.xml
 create mode 100644 gdbstub/gdb-xml/mips64-cp0.xml
 create mode 100644 gdbstub/gdb-xml/mips64-cpu.xml
 create mode 100644 gdbstub/gdb-xml/mips64-fpu.xml
 create mode 100644 gdbstub/gdb-xml/mips64-r5900.xml
 delete mode 100644 tests/tcg/mips/user/isa/r5900/Makefile
 delete mode 100644 tests/tcg/mips/user/isa/r5900/README
 create mode 100644 tests/tcg/mips64el/system/boot.S
 create mode 100644 tests/tcg/mips64el/system/kernel.ld
 create mode 100644 tests/tcg/mips64el/system/meson.build
 create mode 100644 tests/tcg/mips64el/system/test-r5900.py
Signature · 1 line
2.55.0