[5512] Optimize redundant cp15 coprocessor access control register writes.
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 <[email protected]>
Modified Paths:
--------------
trunk/target-arm/helper.c
Modified: trunk/target-arm/helper.c
===================================================================
target-arm/helper.c +5 -3
@@ -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;