From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40401) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIGr7-0001qa-5n for qemu-devel@nongnu.org; Thu, 01 Nov 2018 13:34:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gIGr2-0000CI-1b for qemu-devel@nongnu.org; Thu, 01 Nov 2018 13:34:05 -0400 Received: from ste-pvt-msa2.bahnhof.se ([213.80.101.71]:15633) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gIGr1-0000BG-Kd for qemu-devel@nongnu.org; Thu, 01 Nov 2018 13:33:59 -0400 Date: Thu, 1 Nov 2018 18:33:56 +0100 From: Fredrik Noring Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v2 00/12] target/mips: Amend R5900 support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aleksandar Markovic , Aurelien Jarno , Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= Cc: =?utf-8?Q?J=C3=BCrgen?= Urban , "Maciej W. Rozycki" , qemu-devel@nongnu.org This series amends the R5900 support with the following noncritical features: - R5900 MFLO1, MFHI1, MTLO1 and MTHI1 are generated in gen_HILO1_tx79. - R5900 DIV1 and DIVU1 are generated in gen_div1_tx79. - The R5900 LQ and SQ instructions are now also covered by the Toshiba MMI ASE, as per the TX79 manual[1]. - The three-operand MADD and MADDU instructions specific to the R5900 and the Toshiba TX19, TX39 and TX79 cores are now supported and tested by the R5900 TCG test suite. - The three-operand MADD1 and MADDU1 pipeline 1 instructions specific to the R5900 and the Toshiba TX79 core are now supported and tested by the R5900 TCG test suite. - The membership field of struct mips_opcode is now uint64_t instead of unsigned long, that is too small in 32-bit builds. - R5900 disassembly constants are defined. - The R5900 instructions DIV1, DIVU1, MFLO, MTLO, MFHI, MTHI, MULT1 and MULTU1 are now disassembled. Unfortunately, the opcodes for MADD1 and MADDU1 clash with the opcodes for CLZ and CLO, resulting in incorrect disassembly. MADD1 and MADDU1 are therefore left undefined. This series has been successfully built with the 8 different build configurations {gcc,clang} x -m64 x mips{,64}el-{linux-user,softmmu} in addition successfully completing the R5900 test suite cd tests/tcg/mips/mipsr5900 && make check Reference: [1] "Toshiba TX System RISC TX79 Core Architecture", Toshiba Corporation, section B.3.2, p. B-4, . Changes in v2: - Drop rejected rename of ASE_MMI to ASE_TOSHIBA_MMI - Generate R5900 DIV1 and DIVU1 in gen_div1_tx79 - Generate R5900 MFLO1, MFHI1, MTLO1 and MTHI1 in gen_HILO1_tx79 Fredrik Noring (10): target/mips: Generate R5900 MFLO1, MFHI1, MTLO1 and MTHI1 in gen_HILO1_= tx79 target/mips: Generate R5900 DIV1 and DIVU1 in gen_div1_tx79 target/mips: R5900 LQ and SQ also belong to the Toshiba MMI ASE target/mips: Support R5900 three-operand MADD1 and MADDU1 tests/tcg/mips: Test R5900 three-operand MADD tests/tcg/mips: Test R5900 three-operand MADD1 tests/tcg/mips: Test R5900 three-operand MADDU tests/tcg/mips: Test R5900 three-operand MADDU1 disas/mips: Define R5900 disassembly constants disas/mips: Disassemble R5900 DIV[U]1, M{F,T}{LO,HI}1 and MULT[U]1 Philippe Mathieu-Daud=C3=A9 (2): target/mips: Support Toshiba specific three-operand MADD and MADDU disas/mips: Increase 'member of ISAs' flag holder size disas/mips.c | 22 +++- target/mips/translate.c | 206 ++++++++++++++++++++++++++---- tests/tcg/mips/mipsr5900/Makefile | 2 + tests/tcg/mips/mipsr5900/madd.c | 78 +++++++++++ tests/tcg/mips/mipsr5900/maddu.c | 70 ++++++++++ 5 files changed, 351 insertions(+), 27 deletions(-) create mode 100644 tests/tcg/mips/mipsr5900/madd.c create mode 100644 tests/tcg/mips/mipsr5900/maddu.c --=20 2.18.1