microblaze: Add sync to tlb operations

Do the real sync by using mbar instruction.

Signed-off-by: Stefan Asserhall <stefan.asserhall@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
Stefan Asserhall 2020-02-04 17:55:28 +01:00 committed by Michal Simek
parent db79e0292d
commit 512b2203e4
1 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,7 @@ _tlbia_1:
rsubi r11, r12, MICROBLAZE_TLB_SIZE - 1
bneid r11, _tlbia_1 /* loop for all entries */
addik r12, r12, 1
/* sync */
mbar 1 /* sync */
rtsd r15, 8
nop
.size _tlbia, . - _tlbia
@ -58,6 +58,7 @@ _tlbie:
blti r12, _tlbie_1 /* Check if found */
mts rtlbhi, r0 /* flush: ensure V is clear */
nop
mbar 1 /* sync */
_tlbie_1:
rtsd r15, 8
nop