From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57407) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJh5t-0004Sf-Gj for qemu-devel@nongnu.org; Mon, 05 Nov 2018 10:47:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJgzn-0006Lt-44 for qemu-devel@nongnu.org; Mon, 05 Nov 2018 10:40:58 -0500 Received: from ste-pvt-msa2.bahnhof.se ([213.80.101.71]:64501) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gJgzm-000665-RZ for qemu-devel@nongnu.org; Mon, 05 Nov 2018 10:40:55 -0500 Date: Mon, 5 Nov 2018 16:40:46 +0100 From: Fredrik Noring Message-ID: <20181105154046.GA2383@sx9> References: <1001e61e-b6c0-1a41-9e9f-e2fd5a51f7b5@linaro.org> <20181104131236.GA30862@sx9> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH 1/2] target/mips: Fix decoding mechanism of R5900 MFLO1, MFHI1, MTLO1 and MTHI1 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Maciej W. Rozycki" Cc: Richard Henderson , Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= , Aleksandar Markovic , Aurelien Jarno , =?utf-8?Q?J=C3=BCrgen?= Urban , Jia Liu , qemu-devel@nongnu.org Thanks for checking this, Maciej, [ Cc-ing Jia Liu, who added MIPS ASE DSP support in commit 4133498f8e532f "Use correct acc value to index cpu_HI/cpu_LO rather than using a fix number", in case there are known ISA deviations. ] > However `gen_HILO' looks wrong to me as it'll truncate the values of > $acc3-$acc1 with the 64-bit DSP ASE. I can post a patch to fix gen_HILO. The best reference I have found so far is "MIPS Architecture for Programmers Volume IV-e: MIPS DSP Module for microMIPS64 Architecture" https://s3-eu-west-1.amazonaws.com/downloads-mips/documents/MD00765-2B-microMIPS64DSP-AFP-03.02.pdf that says MFHI: GPR[rds]63..0 <- HI[ac]63..0 MFLO: GPR[rdt]63..0 <- LO[ac]63..0 MTHI: HI[ac]63..0 <- GPR[rs]63..0 MTLO: LO[ac]63..0 <- GPR[rs]63..0 where ac can range from 0 to 3. Do you have a link to a better reference, by chance, that isn't tied to microMIPS? Fredrik