Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KsgLf-00009X-0G for qemu-devel@nongnu.org; Wed, 22 Oct 2008 12:14:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KsgLc-00008c-Rg for qemu-devel@nongnu.org; Wed, 22 Oct 2008 12:14:14 -0400 Received: from [199.232.76.173] (port=45035 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsgLc-00008X-NW for qemu-devel@nongnu.org; Wed, 22 Oct 2008 12:14:12 -0400 Received: from savannah.gnu.org ([199.232.41.3]:41952 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KsgLc-0007W8-Bh for qemu-devel@nongnu.org; Wed, 22 Oct 2008 12:14:12 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KsgLZ-0003aD-9Q for qemu-devel@nongnu.org; Wed, 22 Oct 2008 16:14:09 +0000 Received: from pbrook by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KsgLZ-0003a9-0V for qemu-devel@nongnu.org; Wed, 22 Oct 2008 16:14:09 +0000 MIME-Version: 1.0 Errors-To: pbrook Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Paul Brook Message-Id: Date: Wed, 22 Oct 2008 16:14:09 +0000 Subject: [Qemu-devel] [5512] Optimize redundant cp15 coprocessor access control register writes. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 5512 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5512 Author: pbrook Date: 2008-10-22 16:14:08 +0000 (Wed, 22 Oct 2008) Log Message: ----------- Optimize redundant cp15 coprocessor access control register writes. Signed-off-by: Paul Brook Modified Paths: -------------- trunk/target-arm/helper.c Modified: trunk/target-arm/helper.c =================================================================== --- trunk/target-arm/helper.c 2008-10-22 15:55:18 UTC (rev 5511) +++ trunk/target-arm/helper.c 2008-10-22 16:14:08 UTC (rev 5512) @@ -1334,9 +1334,11 @@ case 2: if (arm_feature(env, ARM_FEATURE_XSCALE)) goto bad_reg; - env->cp15.c1_coproc = val; - /* ??? Is this safe when called from within a TB? */ - tb_flush(env); + if (env->cp15.c1_coproc != val) { + env->cp15.c1_coproc = val; + /* ??? Is this safe when called from within a TB? */ + tb_flush(env); + } break; default: goto bad_reg;