mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-22 10:41:08 +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
|
#endif
|
||||||
memory_region_unref(cache->mr);
|
memory_region_unref(cache->mr);
|
||||||
|
cache->mr = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Called from RCU critical section. This function has the same
|
/* Called from RCU critical section. This function has the same
|
||||||
|
|
Loading…
Reference in a new issue