mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-22 08:11:11 +00:00
exec: make address_space_cache_destroy idempotent
Clear cache->mr so that address_space_cache_destroy does nothing the second time it is called. Backports commit 91047df38dffa80222179f63fbb74c1dfefa25ed from qemu
This commit is contained in:
parent
e66da21a56
commit
37918ba5b0
|
@ -2474,6 +2474,7 @@ void address_space_cache_destroy(MemoryRegionCache *cache)
|
|||
}
|
||||
#endif
|
||||
memory_region_unref(cache->mr);
|
||||
cache->mr = NULL;
|
||||
}
|
||||
|
||||
/* Called from RCU critical section. This function has the same
|
||||
|
|
Loading…
Reference in a new issue