Put iccci into CONFIG_44x ifdef
Subsystems (2)
PATCH 4/11 Put iccci into CONFIG_44x ifdef
E500 deosn't support this instruction.
Signed-off-by Liu Yu <[email protected]>
--- arch/powerpc/kvm/booke_interrupts.S | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
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)
Signature · 1 line
1.5.4
Quoted 13 lines · Liu Yu
E500 deosn't support this instruction.
Signed-off-by Liu Yu <[email protected]>--- arch/powerpc/kvm/booke_interrupts.S | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)arch/powerpc/kvm/booke_interrupts.S +0
-0
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