[Qemu-devel] [PATCH v2 0/9] Misc target/mips fixes and improvements

Aleksandar Markovic posted 9 patches 5 years, 2 months ago
Only 8 patches received!
There is a newer version of this series
disas/nanomips.cpp                                 | 224 +++++++++++----------
disas/nanomips.h                                   |   2 +-
hw/misc/mips_itu.c                                 |   2 +-
qemu-doc.texi                                      |  37 ++--
tests/tcg/mips/include/wrappers_msa.h              |  25 +++
.../{bit-counting => bit-count}/test_msa_nloc_b.c  |   6 +-
.../{bit-counting => bit-count}/test_msa_nloc_d.c  |   6 +-
.../{bit-counting => bit-count}/test_msa_nloc_h.c  |   6 +-
.../{bit-counting => bit-count}/test_msa_nloc_w.c  |   6 +-
.../{bit-counting => bit-count}/test_msa_nlzc_b.c  |   6 +-
.../{bit-counting => bit-count}/test_msa_nlzc_d.c  |   6 +-
.../{bit-counting => bit-count}/test_msa_nlzc_h.c  |   6 +-
.../{bit-counting => bit-count}/test_msa_nlzc_w.c  |   6 +-
.../{bit-counting => bit-count}/test_msa_pcnt_b.c  |   6 +-
.../{bit-counting => bit-count}/test_msa_pcnt_d.c  |   6 +-
.../{bit-counting => bit-count}/test_msa_pcnt_h.c  |   6 +-
.../{bit-counting => bit-count}/test_msa_pcnt_w.c  |   6 +-
.../mips/user/ase/msa/int-compare/test_msa_ceq_b.c | 153 ++++++++++++++
.../mips/user/ase/msa/int-compare/test_msa_ceq_d.c | 153 ++++++++++++++
.../mips/user/ase/msa/int-compare/test_msa_ceq_h.c | 153 ++++++++++++++
.../mips/user/ase/msa/int-compare/test_msa_ceq_w.c | 153 ++++++++++++++
.../user/ase/msa/int-compare/test_msa_cle_s_b.c    | 153 ++++++++++++++
.../user/ase/msa/int-compare/test_msa_cle_s_d.c    | 153 ++++++++++++++
.../user/ase/msa/int-compare/test_msa_cle_s_h.c    | 153 ++++++++++++++
.../user/ase/msa/int-compare/test_msa_cle_s_w.c    | 153 ++++++++++++++
.../user/ase/msa/int-compare/test_msa_cle_u_b.c    | 153 ++++++++++++++
.../user/ase/msa/int-compare/test_msa_cle_u_d.c    | 153 ++++++++++++++
.../user/ase/msa/int-compare/test_msa_cle_u_h.c    | 153 ++++++++++++++
.../user/ase/msa/int-compare/test_msa_cle_u_w.c    | 153 ++++++++++++++
.../user/ase/msa/int-compare/test_msa_clt_s_b.c    | 153 ++++++++++++++
.../user/ase/msa/int-compare/test_msa_clt_s_d.c    | 153 ++++++++++++++
.../user/ase/msa/int-compare/test_msa_clt_s_h.c    | 153 ++++++++++++++
.../user/ase/msa/int-compare/test_msa_clt_s_w.c    | 153 ++++++++++++++
.../user/ase/msa/int-compare/test_msa_clt_u_b.c    | 153 ++++++++++++++
.../user/ase/msa/int-compare/test_msa_clt_u_d.c    | 153 ++++++++++++++
.../user/ase/msa/int-compare/test_msa_clt_u_h.c    | 153 ++++++++++++++
.../user/ase/msa/int-compare/test_msa_clt_u_w.c    | 153 ++++++++++++++
37 files changed, 3263 insertions(+), 159 deletions(-)
rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_nloc_b.c (98%)
rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_nloc_d.c (98%)
rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_nloc_h.c (98%)
rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_nloc_w.c (98%)
rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_nlzc_b.c (98%)
rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_nlzc_d.c (98%)
rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_nlzc_h.c (98%)
rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_nlzc_w.c (98%)
rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_pcnt_b.c (98%)
rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_pcnt_d.c (98%)
rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_pcnt_h.c (98%)
rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_pcnt_w.c (98%)
create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_ceq_b.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_ceq_d.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_ceq_h.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_ceq_w.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_cle_s_b.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_cle_s_d.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_cle_s_h.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_cle_s_w.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_cle_u_b.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_cle_u_d.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_cle_u_h.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_cle_u_w.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_clt_s_b.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_clt_s_d.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_clt_s_h.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_clt_s_w.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_clt_u_b.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_clt_u_d.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_clt_u_h.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_clt_u_w.c
[Qemu-devel] [PATCH v2 0/9] Misc target/mips fixes and improvements
Posted by Aleksandar Markovic 5 years, 2 months ago
From: Aleksandar Markovic <amarkovic@wavecomp.com>

A collection of misc target/mips fixes and improvements for
February 2019.

v1->v2:

  - added two patches on updating end user documentation
  - minor updates to commit messages

Aleksandar Markovic (9):
  hw/misc: mips_itu: Fix 32/64 bit issue in a line involving shift
    operator
  tests/tcg: target/mips: Correct path to headers in some test source
    files
  tests/tcg: target/mips: Change directory name 'bit-counting' to
    'bit-count'
  tests/tcg: target/mips: Add wrappers for MSA integer compare
    instructions
  tests/tcg: target/mips: Add tests for MSA integer compare instructions
  disas: nanoMIPS: Correct comments to handlers of some DSP instructions
  disas: nanoMIPS: Fix a function misnomer
  qemu-doc: Move section on MIPS' mipssim pseudo board
  qemu-doc: Add section on MIPS' Fulong 2E board

 disas/nanomips.cpp                                 | 224 +++++++++++----------
 disas/nanomips.h                                   |   2 +-
 hw/misc/mips_itu.c                                 |   2 +-
 qemu-doc.texi                                      |  37 ++--
 tests/tcg/mips/include/wrappers_msa.h              |  25 +++
 .../{bit-counting => bit-count}/test_msa_nloc_b.c  |   6 +-
 .../{bit-counting => bit-count}/test_msa_nloc_d.c  |   6 +-
 .../{bit-counting => bit-count}/test_msa_nloc_h.c  |   6 +-
 .../{bit-counting => bit-count}/test_msa_nloc_w.c  |   6 +-
 .../{bit-counting => bit-count}/test_msa_nlzc_b.c  |   6 +-
 .../{bit-counting => bit-count}/test_msa_nlzc_d.c  |   6 +-
 .../{bit-counting => bit-count}/test_msa_nlzc_h.c  |   6 +-
 .../{bit-counting => bit-count}/test_msa_nlzc_w.c  |   6 +-
 .../{bit-counting => bit-count}/test_msa_pcnt_b.c  |   6 +-
 .../{bit-counting => bit-count}/test_msa_pcnt_d.c  |   6 +-
 .../{bit-counting => bit-count}/test_msa_pcnt_h.c  |   6 +-
 .../{bit-counting => bit-count}/test_msa_pcnt_w.c  |   6 +-
 .../mips/user/ase/msa/int-compare/test_msa_ceq_b.c | 153 ++++++++++++++
 .../mips/user/ase/msa/int-compare/test_msa_ceq_d.c | 153 ++++++++++++++
 .../mips/user/ase/msa/int-compare/test_msa_ceq_h.c | 153 ++++++++++++++
 .../mips/user/ase/msa/int-compare/test_msa_ceq_w.c | 153 ++++++++++++++
 .../user/ase/msa/int-compare/test_msa_cle_s_b.c    | 153 ++++++++++++++
 .../user/ase/msa/int-compare/test_msa_cle_s_d.c    | 153 ++++++++++++++
 .../user/ase/msa/int-compare/test_msa_cle_s_h.c    | 153 ++++++++++++++
 .../user/ase/msa/int-compare/test_msa_cle_s_w.c    | 153 ++++++++++++++
 .../user/ase/msa/int-compare/test_msa_cle_u_b.c    | 153 ++++++++++++++
 .../user/ase/msa/int-compare/test_msa_cle_u_d.c    | 153 ++++++++++++++
 .../user/ase/msa/int-compare/test_msa_cle_u_h.c    | 153 ++++++++++++++
 .../user/ase/msa/int-compare/test_msa_cle_u_w.c    | 153 ++++++++++++++
 .../user/ase/msa/int-compare/test_msa_clt_s_b.c    | 153 ++++++++++++++
 .../user/ase/msa/int-compare/test_msa_clt_s_d.c    | 153 ++++++++++++++
 .../user/ase/msa/int-compare/test_msa_clt_s_h.c    | 153 ++++++++++++++
 .../user/ase/msa/int-compare/test_msa_clt_s_w.c    | 153 ++++++++++++++
 .../user/ase/msa/int-compare/test_msa_clt_u_b.c    | 153 ++++++++++++++
 .../user/ase/msa/int-compare/test_msa_clt_u_d.c    | 153 ++++++++++++++
 .../user/ase/msa/int-compare/test_msa_clt_u_h.c    | 153 ++++++++++++++
 .../user/ase/msa/int-compare/test_msa_clt_u_w.c    | 153 ++++++++++++++
 37 files changed, 3263 insertions(+), 159 deletions(-)
 rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_nloc_b.c (98%)
 rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_nloc_d.c (98%)
 rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_nloc_h.c (98%)
 rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_nloc_w.c (98%)
 rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_nlzc_b.c (98%)
 rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_nlzc_d.c (98%)
 rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_nlzc_h.c (98%)
 rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_nlzc_w.c (98%)
 rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_pcnt_b.c (98%)
 rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_pcnt_d.c (98%)
 rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_pcnt_h.c (98%)
 rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_pcnt_w.c (98%)
 create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_ceq_b.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_ceq_d.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_ceq_h.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_ceq_w.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_cle_s_b.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_cle_s_d.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_cle_s_h.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_cle_s_w.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_cle_u_b.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_cle_u_d.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_cle_u_h.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_cle_u_w.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_clt_s_b.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_clt_s_d.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_clt_s_h.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_clt_s_w.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_clt_u_b.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_clt_u_d.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_clt_u_h.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-compare/test_msa_clt_u_w.c

-- 
2.7.4


[Qemu-devel] [PATCH v2 3/9] tests/tcg: target/mips: Change directory name 'bit-counting' to 'bit-count'
Posted by Aleksandar Markovic 5 years, 2 months ago
From: Aleksandar Markovic <amarkovic@wavecomp.com>

Change directory name 'bit-counting' to 'bit-count'. This is just for
cosmetic and consistency sake. This was the only subdirectory in MSA
test directory that uses ending 'ing'.

Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_nloc_b.c | 0
 tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_nloc_d.c | 0
 tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_nloc_h.c | 0
 tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_nloc_w.c | 0
 tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_nlzc_b.c | 0
 tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_nlzc_d.c | 0
 tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_nlzc_h.c | 0
 tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_nlzc_w.c | 0
 tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_pcnt_b.c | 0
 tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_pcnt_d.c | 0
 tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_pcnt_h.c | 0
 tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_pcnt_w.c | 0
 12 files changed, 0 insertions(+), 0 deletions(-)
 rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_nloc_b.c (100%)
 rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_nloc_d.c (100%)
 rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_nloc_h.c (100%)
 rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_nloc_w.c (100%)
 rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_nlzc_b.c (100%)
 rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_nlzc_d.c (100%)
 rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_nlzc_h.c (100%)
 rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_nlzc_w.c (100%)
 rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_pcnt_b.c (100%)
 rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_pcnt_d.c (100%)
 rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_pcnt_h.c (100%)
 rename tests/tcg/mips/user/ase/msa/{bit-counting => bit-count}/test_msa_pcnt_w.c (100%)

diff --git a/tests/tcg/mips/user/ase/msa/bit-counting/test_msa_nloc_b.c b/tests/tcg/mips/user/ase/msa/bit-count/test_msa_nloc_b.c
similarity index 100%
rename from tests/tcg/mips/user/ase/msa/bit-counting/test_msa_nloc_b.c
rename to tests/tcg/mips/user/ase/msa/bit-count/test_msa_nloc_b.c
diff --git a/tests/tcg/mips/user/ase/msa/bit-counting/test_msa_nloc_d.c b/tests/tcg/mips/user/ase/msa/bit-count/test_msa_nloc_d.c
similarity index 100%
rename from tests/tcg/mips/user/ase/msa/bit-counting/test_msa_nloc_d.c
rename to tests/tcg/mips/user/ase/msa/bit-count/test_msa_nloc_d.c
diff --git a/tests/tcg/mips/user/ase/msa/bit-counting/test_msa_nloc_h.c b/tests/tcg/mips/user/ase/msa/bit-count/test_msa_nloc_h.c
similarity index 100%
rename from tests/tcg/mips/user/ase/msa/bit-counting/test_msa_nloc_h.c
rename to tests/tcg/mips/user/ase/msa/bit-count/test_msa_nloc_h.c
diff --git a/tests/tcg/mips/user/ase/msa/bit-counting/test_msa_nloc_w.c b/tests/tcg/mips/user/ase/msa/bit-count/test_msa_nloc_w.c
similarity index 100%
rename from tests/tcg/mips/user/ase/msa/bit-counting/test_msa_nloc_w.c
rename to tests/tcg/mips/user/ase/msa/bit-count/test_msa_nloc_w.c
diff --git a/tests/tcg/mips/user/ase/msa/bit-counting/test_msa_nlzc_b.c b/tests/tcg/mips/user/ase/msa/bit-count/test_msa_nlzc_b.c
similarity index 100%
rename from tests/tcg/mips/user/ase/msa/bit-counting/test_msa_nlzc_b.c
rename to tests/tcg/mips/user/ase/msa/bit-count/test_msa_nlzc_b.c
diff --git a/tests/tcg/mips/user/ase/msa/bit-counting/test_msa_nlzc_d.c b/tests/tcg/mips/user/ase/msa/bit-count/test_msa_nlzc_d.c
similarity index 100%
rename from tests/tcg/mips/user/ase/msa/bit-counting/test_msa_nlzc_d.c
rename to tests/tcg/mips/user/ase/msa/bit-count/test_msa_nlzc_d.c
diff --git a/tests/tcg/mips/user/ase/msa/bit-counting/test_msa_nlzc_h.c b/tests/tcg/mips/user/ase/msa/bit-count/test_msa_nlzc_h.c
similarity index 100%
rename from tests/tcg/mips/user/ase/msa/bit-counting/test_msa_nlzc_h.c
rename to tests/tcg/mips/user/ase/msa/bit-count/test_msa_nlzc_h.c
diff --git a/tests/tcg/mips/user/ase/msa/bit-counting/test_msa_nlzc_w.c b/tests/tcg/mips/user/ase/msa/bit-count/test_msa_nlzc_w.c
similarity index 100%
rename from tests/tcg/mips/user/ase/msa/bit-counting/test_msa_nlzc_w.c
rename to tests/tcg/mips/user/ase/msa/bit-count/test_msa_nlzc_w.c
diff --git a/tests/tcg/mips/user/ase/msa/bit-counting/test_msa_pcnt_b.c b/tests/tcg/mips/user/ase/msa/bit-count/test_msa_pcnt_b.c
similarity index 100%
rename from tests/tcg/mips/user/ase/msa/bit-counting/test_msa_pcnt_b.c
rename to tests/tcg/mips/user/ase/msa/bit-count/test_msa_pcnt_b.c
diff --git a/tests/tcg/mips/user/ase/msa/bit-counting/test_msa_pcnt_d.c b/tests/tcg/mips/user/ase/msa/bit-count/test_msa_pcnt_d.c
similarity index 100%
rename from tests/tcg/mips/user/ase/msa/bit-counting/test_msa_pcnt_d.c
rename to tests/tcg/mips/user/ase/msa/bit-count/test_msa_pcnt_d.c
diff --git a/tests/tcg/mips/user/ase/msa/bit-counting/test_msa_pcnt_h.c b/tests/tcg/mips/user/ase/msa/bit-count/test_msa_pcnt_h.c
similarity index 100%
rename from tests/tcg/mips/user/ase/msa/bit-counting/test_msa_pcnt_h.c
rename to tests/tcg/mips/user/ase/msa/bit-count/test_msa_pcnt_h.c
diff --git a/tests/tcg/mips/user/ase/msa/bit-counting/test_msa_pcnt_w.c b/tests/tcg/mips/user/ase/msa/bit-count/test_msa_pcnt_w.c
similarity index 100%
rename from tests/tcg/mips/user/ase/msa/bit-counting/test_msa_pcnt_w.c
rename to tests/tcg/mips/user/ase/msa/bit-count/test_msa_pcnt_w.c
-- 
2.7.4