Commit 512b2203 authored by Stefan Asserhall's avatar Stefan Asserhall Committed by Michal Simek

microblaze: Add sync to tlb operations

Do the real sync by using mbar instruction.
Signed-off-by: default avatarStefan Asserhall <stefan.asserhall@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
Reviewed-by: default avatarArnd Bergmann <arnd@arndb.de>
parent db79e029
...@@ -39,7 +39,7 @@ _tlbia_1: ...@@ -39,7 +39,7 @@ _tlbia_1:
rsubi r11, r12, MICROBLAZE_TLB_SIZE - 1 rsubi r11, r12, MICROBLAZE_TLB_SIZE - 1
bneid r11, _tlbia_1 /* loop for all entries */ bneid r11, _tlbia_1 /* loop for all entries */
addik r12, r12, 1 addik r12, r12, 1
/* sync */ mbar 1 /* sync */
rtsd r15, 8 rtsd r15, 8
nop nop
.size _tlbia, . - _tlbia .size _tlbia, . - _tlbia
...@@ -58,6 +58,7 @@ _tlbie: ...@@ -58,6 +58,7 @@ _tlbie:
blti r12, _tlbie_1 /* Check if found */ blti r12, _tlbie_1 /* Check if found */
mts rtlbhi, r0 /* flush: ensure V is clear */ mts rtlbhi, r0 /* flush: ensure V is clear */
nop nop
mbar 1 /* sync */
_tlbie_1: _tlbie_1:
rtsd r15, 8 rtsd r15, 8
nop nop
......
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