From patchwork Thu Nov 20 16:00:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Maciej W. Rozycki" X-Patchwork-Id: 412766 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 342BC14017B for ; Fri, 21 Nov 2014 03:01:42 +1100 (AEDT) Received: from localhost ([::1]:36028 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrUAs-0001Af-Tb for incoming@patchwork.ozlabs.org; Thu, 20 Nov 2014 11:01:38 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43997) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrUAS-0000f8-NM for qemu-devel@nongnu.org; Thu, 20 Nov 2014 11:01:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XrUAL-0006tf-OE for qemu-devel@nongnu.org; Thu, 20 Nov 2014 11:01:12 -0500 Received: from relay1.mentorg.com ([192.94.38.131]:65185) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrUAL-0006tA-JG for qemu-devel@nongnu.org; Thu, 20 Nov 2014 11:01:05 -0500 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-02.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1XrUAG-0007Pg-OF from Maciej_Rozycki@mentor.com ; Thu, 20 Nov 2014 08:01:00 -0800 Received: from localhost (137.202.0.76) by SVR-IES-FEM-02.mgc.mentorg.com (137.202.0.106) with Microsoft SMTP Server (TLS) id 14.3.181.6; Thu, 20 Nov 2014 16:00:59 +0000 Date: Thu, 20 Nov 2014 16:00:54 +0000 From: "Maciej W. Rozycki" To: Message-ID: User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Windows NT kernel [generic] [fuzzy] X-Received-From: 192.94.38.131 Cc: Leon Alrae , Aurelien Jarno Subject: [Qemu-devel] [PATCH] linux-user: Use the 5KEf processor for 64-bit emulation X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 Reviewed-by: Leon Alrae --- 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