mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-14 19:27:06 +00:00
m1n1.hw.dart: Wait for invalidations to complete
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
78d1e5fd93
commit
b388093d33
1 changed files with 2 additions and 0 deletions
|
@ -323,6 +323,8 @@ class DART(Reloadable):
|
|||
def invalidate_streams(self, streams=0xffffffff):
|
||||
self.regs.STREAM_SELECT.val = streams
|
||||
self.regs.STREAM_COMMAND.val = R_STREAM_COMMAND(INVALIDATE=1)
|
||||
while self.regs.STREAM_COMMAND.reg.BUSY:
|
||||
pass
|
||||
|
||||
def invalidate_cache(self):
|
||||
self.pt_cache = {}
|
||||
|
|
Loading…
Reference in a new issue