qemu-devel@nongnu.org
[Top] [All Lists]

[Qemu-devel] [5512] Optimize redundant cp15 coprocessor access control r

Subject: [Qemu-devel] [5512] Optimize redundant cp15 coprocessor access control register writes.
From: Paul Brook
Date: Wed, 22 Oct 2008 16:14:09 +0000
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 <paul@xxxxxxxxxxxxxxxx>

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;




<Prev in Thread] Current Thread [Next in Thread>
  • [Qemu-devel] [5512] Optimize redundant cp15 coprocessor access control register writes., Paul Brook <=