mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 11:16:28 +00:00
memory: handle alias in memory_region_is_iommu()
Backports commit 12d37882f0c0def5dee1c21be5d8fea9c21baada from qemu
This commit is contained in:
parent
fdca6292a1
commit
29932d0719
|
@ -577,6 +577,9 @@ static inline bool memory_region_is_romd(MemoryRegion *mr)
|
|||
*/
|
||||
static inline bool memory_region_is_iommu(MemoryRegion *mr)
|
||||
{
|
||||
if (mr->alias) {
|
||||
return memory_region_is_iommu(mr->alias);
|
||||
}
|
||||
return mr->iommu_ops;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue