mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
Optimize redundant cp15 coprocessor access control register writes.
Signed-off-by: Paul Brook <paul@codesourcery.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5512 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
3a742b7643
commit
4be27dbbde
1 changed files with 5 additions and 3 deletions
|
@ -1334,9 +1334,11 @@ void HELPER(set_cp15)(CPUState *env, uint32_t insn, uint32_t val)
|
||||||
case 2:
|
case 2:
|
||||||
if (arm_feature(env, ARM_FEATURE_XSCALE))
|
if (arm_feature(env, ARM_FEATURE_XSCALE))
|
||||||
goto bad_reg;
|
goto bad_reg;
|
||||||
env->cp15.c1_coproc = val;
|
if (env->cp15.c1_coproc != val) {
|
||||||
/* ??? Is this safe when called from within a TB? */
|
env->cp15.c1_coproc = val;
|
||||||
tb_flush(env);
|
/* ??? Is this safe when called from within a TB? */
|
||||||
|
tb_flush(env);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
goto bad_reg;
|
goto bad_reg;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue