Commit 69245c97 authored by Helge Deller's avatar Helge Deller

parisc: Flush ITLB in flush_tlb_all_local() only on split TLB machines

flush_tlb_all_local() flushes the ITLB and DTLB of the CPU.
In case the machine does not have separate ITLBs and DTLBs, use the
alternative functionality to replace the code which flushes the ITLB
with nops while keeping the code which flushes the DTLB.
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent f5e03d3a
...@@ -63,7 +63,7 @@ ENTRY_CFI(flush_tlb_all_local) ...@@ -63,7 +63,7 @@ ENTRY_CFI(flush_tlb_all_local)
/* Flush Instruction Tlb */ /* Flush Instruction Tlb */
LDREG ITLB_SID_BASE(%r1), %r20 88: LDREG ITLB_SID_BASE(%r1), %r20
LDREG ITLB_SID_STRIDE(%r1), %r21 LDREG ITLB_SID_STRIDE(%r1), %r21
LDREG ITLB_SID_COUNT(%r1), %r22 LDREG ITLB_SID_COUNT(%r1), %r22
LDREG ITLB_OFF_BASE(%r1), %arg0 LDREG ITLB_OFF_BASE(%r1), %arg0
...@@ -103,6 +103,7 @@ fitonemiddle: /* Loop if LOOP = 1 */ ...@@ -103,6 +103,7 @@ fitonemiddle: /* Loop if LOOP = 1 */
add %r21, %r20, %r20 /* increment space */ add %r21, %r20, %r20 /* increment space */
fitdone: fitdone:
ALTERNATIVE(88b, fitdone, ALT_COND_NO_SPLIT_TLB, INSN_NOP)
/* Flush Data Tlb */ /* Flush Data Tlb */
......
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