From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34861) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwumP-00039n-RN for qemu-devel@nongnu.org; Fri, 05 Dec 2014 10:26:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XwumL-00078B-6K for qemu-devel@nongnu.org; Fri, 05 Dec 2014 10:26:49 -0500 Received: from mailapp01.imgtec.com ([195.59.15.196]:22016) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwumL-000787-0G for qemu-devel@nongnu.org; Fri, 05 Dec 2014 10:26:45 -0500 Message-ID: <5481CEB3.8080003@imgtec.com> Date: Fri, 5 Dec 2014 15:26:43 +0000 From: Leon Alrae MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] linux-user: Use the 5KEf processor for 64-bit emulation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Maciej W. Rozycki" , qemu-devel@nongnu.org Cc: Aurelien Jarno On 20/11/2014 16:00, Maciej W. Rozycki wrote: > Replace the 20Kc original MIPS64 ISA processor used for 64-bit user > emulation with the 5KEf processor that implements the MIPS64r2 ISA, > complementing the choice of the 24Kf processor for 32-bit emulation. > > Signed-off-by: Maciej W. Rozycki > --- > Hi, > > For user emulation mode I think we want to default to the highest ISA > level supported, for maximum user flexibility. Currently the MIPS64r2 > ISA is the highest 64-bit ISA we have a real processor support for so > use it and the 5KEf which is the processor we have that implements it. > Later, as newer processors are added, we can bump it further up. > > I think we should consider picking something for microMIPS support too > sometime, perhaps based on ELF file flags, however the thing is with > that we have no FPU processor to choose. So let's skip it for now. > > I have tested it lightly by running the GCC test suite for the > mips-linux-gnu target and the n64 ABI (`-EB -mabi=64' multilib), using > MIPS64r2 code. > > Please apply. > > Maciej > > qemu-mips-user-5kef.diff > Index: qemu-git-trunk/linux-user/main.c > =================================================================== > --- qemu-git-trunk.orig/linux-user/main.c 2014-11-20 10:47:31.000000000 +0000 > +++ qemu-git-trunk/linux-user/main.c 2014-11-20 10:50:57.098940605 +0000 > @@ -3929,7 +3929,7 @@ int main(int argc, char **argv, char **e > #endif > #elif defined(TARGET_MIPS) > #if defined(TARGET_ABI_MIPSN32) || defined(TARGET_ABI_MIPSN64) > - cpu_model = "20Kc"; > + cpu_model = "5KEf"; > #else > cpu_model = "24Kf"; > #endif > Reviewed-by: Leon Alrae