sfence before writing satp, as well as after
This commit is contained in:
parent
96047832c6
commit
9c1b8a4eb0
3 changed files with 6 additions and 3 deletions
|
@ -305,7 +305,7 @@ iter()
|
|||
exit(1);
|
||||
}
|
||||
if(pid1 == 0){
|
||||
rand_next = 31;
|
||||
rand_next ^= 31;
|
||||
go(0);
|
||||
exit(0);
|
||||
}
|
||||
|
@ -316,7 +316,7 @@ iter()
|
|||
exit(1);
|
||||
}
|
||||
if(pid2 == 0){
|
||||
rand_next = 7177;
|
||||
rand_next ^= 7177;
|
||||
go(1);
|
||||
exit(0);
|
||||
}
|
||||
|
@ -346,5 +346,6 @@ main()
|
|||
wait(0);
|
||||
}
|
||||
sleep(20);
|
||||
rand_next += 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue