Commit d07edbfa authored by pbrook's avatar pbrook
Browse files

Fix Arm cp15 c13 (Process ID) register writes.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162
parent 059809e4
......@@ -494,10 +494,18 @@ void helper_set_cp15(CPUState *env, uint32_t insn, uint32_t val)
case 13: /* Process ID. */
switch (op2) {
case 0:
env->cp15.c9_data = val;
/* Unlike real hardware the qemu TLB uses virtual addresses,
not modified virtual addresses, so this causes a TLB flush.
if (env->cp15.c13_fcse != val)
tlb_flush(env, 1);
env->cp15.c13_fcse = val;
case 1:
env->cp15.c9_insn = val;
/* This changes the ASID, so do a TLB flush. */
if (env->cp15.c13_context != val)
tlb_flush(env, 0);
env->cp15.c13_context = val;
goto bad_reg;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment