Skip to contentSkip to conversation

Put iccci into CONFIG_44x ifdef

PATCH In review Liu Yu 2 participants 2 messages Dec 11, 2008 – Dec 16, 2008

Subsystems (2)
lore
Share & tools
lore

Liu Yu

author
#0 lore raw

PATCH 4/11 Put iccci into CONFIG_44x ifdef

E500 deosn't support this instruction.

---
 arch/powerpc/kvm/booke_interrupts.S |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/powerpc/kvm/booke_interrupts.S +2 -0
index 084ebcd..4679ec2 100644
@@ -347,7 +347,9 @@ lightweight_exit:
 	lwz	r3, VCPU_SHADOW_PID(r4)
 	mtspr	SPRN_PID, r3
 
+#ifdef CONFIG_44x
 	iccci	0, 0 /* XXX hack */
+#endif
 
 	/* Load some guest volatiles. */
 	lwz	r0, VCPU_GPR(r0)(r4)
Signature · 1 line
1.5.4
#1 lore raw
Quoted 13 lines · Liu Yu

E500 deosn't support this instruction.

---
 arch/powerpc/kvm/booke_interrupts.S |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/powerpc/kvm/booke_interrupts.S +0 -0
index 084ebcd..4679ec2 100644

arch/powerpc/kvm/booke_interrupts.S lightweight_exit: · line 355

Quoted 9 lines
arch/powerpc/kvm/booke_interrupts.S +2 -0
@@ -347,7 +347,9 @@ lightweight_exit:
 	lwz	r3, VCPU_SHADOW_PID(r4)
 	mtspr	SPRN_PID, r3
 
+#ifdef CONFIG_44x
 	iccci	0, 0 /* XXX hack */
+#endif
 
 	/* Load some guest volatiles. */
 	lwz	r0, VCPU_GPR(r0)(r4)

You know, I had thought this was unnecessary, and I was going to remove it. However, it looks like the 440 must invalidate the icache any time an (executable) translation changes.

Technically we could handle this like the kernel does with icache_44x_need_flush, but I don't think we're losing much by just leaving this ifdef here.

Signature · 2 lines
Hollis Blanchard
IBM Linux Technology Center