mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 05:32:47 +00:00
fix shared memory optimization problem
This commit is contained in:
parent
8375434093
commit
03007c2b42
@ -40,6 +40,10 @@ extern SystemSHMEM *shmemGlobalBase;
|
|||||||
|
|
||||||
static inline SystemSHMEM *ARM_GetSHMEM(void)
|
static inline SystemSHMEM *ARM_GetSHMEM(void)
|
||||||
{
|
{
|
||||||
|
// shared memory contents are extremely likely to change
|
||||||
|
// insert a compiler barrier to force the compiler not to assume
|
||||||
|
// memory values will remain constant in between calls to getSHMEM
|
||||||
|
asm_v("":::"memory", "cc");
|
||||||
return shmemGlobalBase;
|
return shmemGlobalBase;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user