]> git.sesse.net Git - pistorm/commit
As Arm is an architecture with weakly ordered memory,
authorRune Holm <rune.holm@gmail.com>
Fri, 25 Jun 2021 18:20:27 +0000 (19:20 +0100)
committerRune Holm <rune.holm@gmail.com>
Fri, 25 Jun 2021 18:23:26 +0000 (19:23 +0100)
commitf8315eeed60fa3978705f6a0476fd46ec4b0f472
treedccc9b32d4220454c121f09d7a0c608ad561a53c
parente4401c5cf4c0281e54a66e61117cbc00d7fd7ca6
As Arm is an architecture with weakly ordered memory,
it isn't safe to do cross-thread communication with multiple variables
unless we use memory barriers between them, both on writes and reads.
In the case of musashi, it's the sequence of set irq/do_reset and reset cycles left.
This patch introduces memory barriers between the writes and reads of these
emulator.c