[PATCH 00/13] target: Add Renesas RX architecture

Philippe Mathieu-Daudé posted 13 patches 4 years, 1 month ago
Test docker-mingw@fedora passed
Test docker-quick@centos7 passed
Test checkpatch failed
Test FreeBSD passed
Test asan passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20200315132810.7022-1-f4bug@amsat.org
configure                       |   11 +-
default-configs/rx-softmmu.mak  |    2 +
qapi/machine.json               |    4 +-
include/disas/dis-asm.h         |    5 +
include/exec/poison.h           |    1 +
include/hw/registerfields.h     |   32 +-
include/sysemu/arch_init.h      |    1 +
target/rx/cpu-param.h           |   31 +
target/rx/cpu-qom.h             |   43 +
target/rx/cpu.h                 |  180 +++
target/rx/helper.h              |   31 +
target/rx/insns.decode          |  621 ++++++++
arch_init.c                     |    2 +
target/rx/cpu.c                 |  226 +++
target/rx/disas.c               | 1446 ++++++++++++++++++
target/rx/gdbstub.c             |  112 ++
target/rx/helper.c              |  149 ++
target/rx/op_helper.c           |  470 ++++++
target/rx/translate.c           | 2439 +++++++++++++++++++++++++++++++
tests/qtest/machine-none-test.c |    1 +
MAINTAINERS                     |    5 +
gdb-xml/rx-core.xml             |   70 +
target/rx/Makefile.objs         |   11 +
23 files changed, 5890 insertions(+), 3 deletions(-)
create mode 100644 default-configs/rx-softmmu.mak
create mode 100644 target/rx/cpu-param.h
create mode 100644 target/rx/cpu-qom.h
create mode 100644 target/rx/cpu.h
create mode 100644 target/rx/helper.h
create mode 100644 target/rx/insns.decode
create mode 100644 target/rx/cpu.c
create mode 100644 target/rx/disas.c
create mode 100644 target/rx/gdbstub.c
create mode 100644 target/rx/helper.c
create mode 100644 target/rx/op_helper.c
create mode 100644 target/rx/translate.c
create mode 100644 gdb-xml/rx-core.xml
create mode 100644 target/rx/Makefile.objs
[PATCH 00/13] target: Add Renesas RX architecture
Posted by Philippe Mathieu-Daudé 4 years, 1 month ago
This is a merger of Yoshinori's v32 of the Renesas RX
architecture emulation.
Richard temporarily handed it over for the 5.0 release.

This part adds the architectural part. The hardware part
will follow.

Call this release, or merge, candidate 1.

repo: https://gitlab.com/philmd/qemu.git
branch: rx_target_merger

Richard Henderson (6):
  target/rx: Disassemble rx_index_addr into a string
  target/rx: Replace operand with prt_ldmi in disassembler
  target/rx: Use prt_ldmi for XCHG_mr disassembly
  target/rx: Emit all disassembly in one prt()
  target/rx: Collect all bytes during disassembly
  target/rx: Dump bytes for each insn during disassembly

Yoshinori Sato (7):
  hw/registerfields.h: Add 8bit and 16bit register macros
  MAINTAINERS: Cover Renesas RX architecture
  target/rx: TCG translation
  target/rx: TCG helpers
  target/rx: CPU definitions
  target/rx: RX disassembler
  Add rx-softmmu

 configure                       |   11 +-
 default-configs/rx-softmmu.mak  |    2 +
 qapi/machine.json               |    4 +-
 include/disas/dis-asm.h         |    5 +
 include/exec/poison.h           |    1 +
 include/hw/registerfields.h     |   32 +-
 include/sysemu/arch_init.h      |    1 +
 target/rx/cpu-param.h           |   31 +
 target/rx/cpu-qom.h             |   43 +
 target/rx/cpu.h                 |  180 +++
 target/rx/helper.h              |   31 +
 target/rx/insns.decode          |  621 ++++++++
 arch_init.c                     |    2 +
 target/rx/cpu.c                 |  226 +++
 target/rx/disas.c               | 1446 ++++++++++++++++++
 target/rx/gdbstub.c             |  112 ++
 target/rx/helper.c              |  149 ++
 target/rx/op_helper.c           |  470 ++++++
 target/rx/translate.c           | 2439 +++++++++++++++++++++++++++++++
 tests/qtest/machine-none-test.c |    1 +
 MAINTAINERS                     |    5 +
 gdb-xml/rx-core.xml             |   70 +
 target/rx/Makefile.objs         |   11 +
 23 files changed, 5890 insertions(+), 3 deletions(-)
 create mode 100644 default-configs/rx-softmmu.mak
 create mode 100644 target/rx/cpu-param.h
 create mode 100644 target/rx/cpu-qom.h
 create mode 100644 target/rx/cpu.h
 create mode 100644 target/rx/helper.h
 create mode 100644 target/rx/insns.decode
 create mode 100644 target/rx/cpu.c
 create mode 100644 target/rx/disas.c
 create mode 100644 target/rx/gdbstub.c
 create mode 100644 target/rx/helper.c
 create mode 100644 target/rx/op_helper.c
 create mode 100644 target/rx/translate.c
 create mode 100644 gdb-xml/rx-core.xml
 create mode 100644 target/rx/Makefile.objs

-- 
2.21.1


Re: [PATCH 00/13] target: Add Renesas RX architecture
Posted by no-reply@patchew.org 4 years, 1 month ago
Patchew URL: https://patchew.org/QEMU/20200315132810.7022-1-f4bug@amsat.org/



Hi,

This series seems to have some coding style problems. See output below for
more information:

Subject: [PATCH 00/13] target: Add Renesas RX architecture
Message-id: 20200315132810.7022-1-f4bug@amsat.org
Type: series

=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram
./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===

Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
Switched to a new branch 'test'
79d6cda Add rx-softmmu
61d5dc4 target/rx: Dump bytes for each insn during disassembly
61f37ba target/rx: Collect all bytes during disassembly
5e44021 target/rx: Emit all disassembly in one prt()
1d7fe28 target/rx: Use prt_ldmi for XCHG_mr disassembly
181dd6d target/rx: Replace operand with prt_ldmi in disassembler
02b4bd4 target/rx: Disassemble rx_index_addr into a string
45dffb0 target/rx: RX disassembler
f481b57 target/rx: CPU definitions
393bf6b target/rx: TCG helpers
d65fdf3 target/rx: TCG translation
330642d MAINTAINERS: Cover Renesas RX architecture
956e3be hw/registerfields.h: Add 8bit and 16bit register macros

=== OUTPUT BEGIN ===
1/13 Checking commit 956e3be0f31c (hw/registerfields.h: Add 8bit and 16bit register macros)
Use of uninitialized value in concatenation (.) or string at ./scripts/checkpatch.pl line 2495.
ERROR: Macros with multiple statements should be enclosed in a do - while loop
#28: FILE: include/hw/registerfields.h:25:
+#define REG8(reg, addr)                                                  \
+    enum { A_ ## reg = (addr) };                                          \
+    enum { R_ ## reg = (addr) };

ERROR: Macros with multiple statements should be enclosed in a do - while loop
#32: FILE: include/hw/registerfields.h:29:
+#define REG16(reg, addr)                                                  \
+    enum { A_ ## reg = (addr) };                                          \
+    enum { R_ ## reg = (addr) / 2 };

total: 2 errors, 0 warnings, 56 lines checked

Patch 1/13 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

2/13 Checking commit 330642d32f53 (MAINTAINERS: Cover Renesas RX architecture)
3/13 Checking commit d65fdf35865b (target/rx: TCG translation)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#21: 
new file mode 100644

total: 0 errors, 1 warnings, 3065 lines checked

Patch 3/13 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
4/13 Checking commit 393bf6b3880e (target/rx: TCG helpers)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#19: 
new file mode 100644

total: 0 errors, 1 warnings, 650 lines checked

Patch 4/13 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
5/13 Checking commit f481b5709276 (target/rx: CPU definitions)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#21: 
new file mode 100644

total: 0 errors, 1 warnings, 696 lines checked

Patch 5/13 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
6/13 Checking commit 45dffb0da024 (target/rx: RX disassembler)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#39: 
new file mode 100644

total: 0 errors, 1 warnings, 1497 lines checked

Patch 6/13 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
7/13 Checking commit 02b4bd4eeca4 (target/rx: Disassemble rx_index_addr into a string)
8/13 Checking commit 181dd6d83f88 (target/rx: Replace operand with prt_ldmi in disassembler)
9/13 Checking commit 1d7fe289cc4d (target/rx: Use prt_ldmi for XCHG_mr disassembly)
10/13 Checking commit 5e44021cea93 (target/rx: Emit all disassembly in one prt())
11/13 Checking commit 61f37ba4dba9 (target/rx: Collect all bytes during disassembly)
12/13 Checking commit 61d5dc47c3f0 (target/rx: Dump bytes for each insn during disassembly)
13/13 Checking commit 79d6cdaded27 (Add rx-softmmu)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#68: 
new file mode 100644

total: 0 errors, 1 warnings, 76 lines checked

Patch 13/13 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
=== OUTPUT END ===

Test command exited with code: 1


The full log is available at
http://patchew.org/logs/20200315132810.7022-1-f4bug@amsat.org/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to patchew-devel@redhat.com