[PULL 00/13] target: Add the 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/20200317163616.30027-1-f4bug@amsat.org
There is a newer version of this series
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     |   30 +
include/sysemu/arch_init.h      |    1 +
target/rx/cpu-param.h           |   30 +
target/rx/cpu-qom.h             |   54 +
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, 5899 insertions(+), 2 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
[PULL 00/13] target: Add the Renesas RX architecture
Posted by Philippe Mathieu-Daudé 4 years, 1 month ago
This pull request adds the architectural part of the Renesas RX
architecture.  Richard Henderson temporarily handed it over for
the 5.0 release.

The following changes since commit a98135f727595382e200d04c2996e868b7925a01:

  Merge remote-tracking branch 'remotes/kraxel/tags/vga-20200316-pull-request' into staging (2020-03-16 14:55:59 +0000)

are available in the Git repository at:

  https://gitlab.com/philmd/qemu.git tags/target_renesas_rx-20200317

for you to fetch changes up to d9ecf331340137dc091bdcf3d3ef60087deac9ac:

  Add rx-softmmu (2020-03-17 16:01:58 +0100)

----------------------------------------------------------------

Introduce the architectural part of the Renesas RX
architecture emulation, developed by Yoshinori Sato.

CI jobs results:
  https://gitlab.com/philmd/qemu/pipelines/127060924
  https://travis-ci.org/github/philmd/qemu/builds/663524971

----------------------------------------------------------------

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: Add entry for the 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     |   30 +
 include/sysemu/arch_init.h      |    1 +
 target/rx/cpu-param.h           |   30 +
 target/rx/cpu-qom.h             |   54 +
 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, 5899 insertions(+), 2 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: [PULL 00/13] target: Add the Renesas RX architecture
Posted by no-reply@patchew.org 4 years, 1 month ago
Patchew URL: https://patchew.org/QEMU/20200317163616.30027-1-f4bug@amsat.org/



Hi,

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

Subject: [PULL 00/13] target: Add the Renesas RX architecture
Message-id: 20200317163616.30027-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
From https://github.com/patchew-project/qemu
 * [new tag]         patchew/20200317200541.6246-1-philmd@redhat.com -> patchew/20200317200541.6246-1-philmd@redhat.com
Switched to a new branch 'test'
3a72228 Add rx-softmmu
e284aa6 target/rx: Dump bytes for each insn during disassembly
58646ca target/rx: Collect all bytes during disassembly
71dbe11 target/rx: Emit all disassembly in one prt()
b9e97ae target/rx: Use prt_ldmi for XCHG_mr disassembly
25d5453 target/rx: Replace operand with prt_ldmi in disassembler
369a776 target/rx: Disassemble rx_index_addr into a string
f31720a target/rx: RX disassembler
f38c0ff target/rx: CPU definitions
5c907db target/rx: TCG helpers
44000a2 target/rx: TCG translation
2b9cb96 MAINTAINERS: Add entry for the Renesas RX architecture
746243f hw/registerfields.h: Add 8bit and 16bit register macros

=== OUTPUT BEGIN ===
1/13 Checking commit 746243fada73 (hw/registerfields.h: Add 8bit and 16bit register macros)
ERROR: Macros with multiple statements should be enclosed in a do - while loop
#29: 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
#33: FILE: include/hw/registerfields.h:29:
+#define REG16(reg, addr)                                                  \
+    enum { A_ ## reg = (addr) };                                          \
+    enum { R_ ## reg = (addr) / 2 };

total: 2 errors, 0 warnings, 48 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 2b9cb96ef341 (MAINTAINERS: Add entry for the Renesas RX architecture)
3/13 Checking commit 44000a2d6936 (target/rx: TCG translation)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#22: 
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 5c907dbf9a1c (target/rx: TCG helpers)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#20: 
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 f38c0ffeadc7 (target/rx: CPU definitions)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#22: 
new file mode 100644

total: 0 errors, 1 warnings, 706 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 f31720a34503 (target/rx: RX disassembler)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#40: 
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 369a77660e88 (target/rx: Disassemble rx_index_addr into a string)
8/13 Checking commit 25d5453ea0b8 (target/rx: Replace operand with prt_ldmi in disassembler)
9/13 Checking commit b9e97ae22a00 (target/rx: Use prt_ldmi for XCHG_mr disassembly)
10/13 Checking commit 71dbe119dcf7 (target/rx: Emit all disassembly in one prt())
11/13 Checking commit 58646ca43056 (target/rx: Collect all bytes during disassembly)
12/13 Checking commit e284aa62a67c (target/rx: Dump bytes for each insn during disassembly)
13/13 Checking commit 3a72228fc26c (Add rx-softmmu)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#69: 
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/20200317163616.30027-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
Re: [PULL 00/13] target: Add the Renesas RX architecture
Posted by no-reply@patchew.org 4 years, 1 month ago
Patchew URL: https://patchew.org/QEMU/20200317163616.30027-1-f4bug@amsat.org/



Hi,

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

Subject: [PULL 00/13] target: Add the Renesas RX architecture
Message-id: 20200317163616.30027-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'
535cf68 Add rx-softmmu
a4dec27 target/rx: Dump bytes for each insn during disassembly
d7598a8 target/rx: Collect all bytes during disassembly
dcd1fc4 target/rx: Emit all disassembly in one prt()
1f2f350 target/rx: Use prt_ldmi for XCHG_mr disassembly
732d148 target/rx: Replace operand with prt_ldmi in disassembler
4986f2e target/rx: Disassemble rx_index_addr into a string
77fa86b target/rx: RX disassembler
a5dbc2b target/rx: CPU definitions
0ca6b46 target/rx: TCG helpers
5dc4bed target/rx: TCG translation
e7b2b77 MAINTAINERS: Add entry for the Renesas RX architecture
834d435 hw/registerfields.h: Add 8bit and 16bit register macros

=== OUTPUT BEGIN ===
1/13 Checking commit 834d435694f8 (hw/registerfields.h: Add 8bit and 16bit register macros)
ERROR: Macros with multiple statements should be enclosed in a do - while loop
#29: 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
#33: FILE: include/hw/registerfields.h:29:
+#define REG16(reg, addr)                                                  \
+    enum { A_ ## reg = (addr) };                                          \
+    enum { R_ ## reg = (addr) / 2 };

total: 2 errors, 0 warnings, 48 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 e7b2b77fbea2 (MAINTAINERS: Add entry for the Renesas RX architecture)
3/13 Checking commit 5dc4beddbcc7 (target/rx: TCG translation)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#22: 
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 0ca6b46ea8d2 (target/rx: TCG helpers)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#20: 
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 a5dbc2bd59fe (target/rx: CPU definitions)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#22: 
new file mode 100644

total: 0 errors, 1 warnings, 706 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 77fa86be9187 (target/rx: RX disassembler)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#40: 
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 4986f2ec7901 (target/rx: Disassemble rx_index_addr into a string)
8/13 Checking commit 732d148c748e (target/rx: Replace operand with prt_ldmi in disassembler)
9/13 Checking commit 1f2f350c5ea1 (target/rx: Use prt_ldmi for XCHG_mr disassembly)
10/13 Checking commit dcd1fc42e0a9 (target/rx: Emit all disassembly in one prt())
11/13 Checking commit d7598a82bf6b (target/rx: Collect all bytes during disassembly)
12/13 Checking commit a4dec27f7f50 (target/rx: Dump bytes for each insn during disassembly)
13/13 Checking commit 535cf68782f7 (Add rx-softmmu)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#69: 
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/20200317163616.30027-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
Re: [PULL 00/13] target: Add the Renesas RX architecture
Posted by Philippe Mathieu-Daudé 4 years, 1 month ago
Hi Peter,

On 3/17/20 5:36 PM, Philippe Mathieu-Daudé wrote:
> This pull request adds the architectural part of the Renesas RX
> architecture.  Richard Henderson temporarily handed it over for
> the 5.0 release.
> 
> The following changes since commit a98135f727595382e200d04c2996e868b7925a01:
> 
>    Merge remote-tracking branch 'remotes/kraxel/tags/vga-20200316-pull-request' into staging (2020-03-16 14:55:59 +0000)
> 
> are available in the Git repository at:
> 
>    https://gitlab.com/philmd/qemu.git tags/target_renesas_rx-20200317
> 
> for you to fetch changes up to d9ecf331340137dc091bdcf3d3ef60087deac9ac:
> 
>    Add rx-softmmu (2020-03-17 16:01:58 +0100)
> 
> ----------------------------------------------------------------
> 
> Introduce the architectural part of the Renesas RX
> architecture emulation, developed by Yoshinori Sato.
> 
> CI jobs results:
>    https://gitlab.com/philmd/qemu/pipelines/127060924
>    https://travis-ci.org/github/philmd/qemu/builds/663524971
> 
> ----------------------------------------------------------------
> 
> 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: Add entry for the 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     |   30 +
>   include/sysemu/arch_init.h      |    1 +
>   target/rx/cpu-param.h           |   30 +
>   target/rx/cpu-qom.h             |   54 +
>   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, 5899 insertions(+), 2 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
> 

In case you don't notice the other post on Eduardo pull request [*], I 
suggested skip the RX one to get Eduardo's one first, then I'll repost 
fixed on top.

Regards,

Phil.

[*] https://lists.gnu.org/archive/html/qemu-devel/2020-03/msg05890.html