|
From: | Paolo Bonzini |
Subject: | Re: [PATCH v1] memory: assert MemoryRegionOps callbacks are defined |
Date: | Thu, 18 Jun 2020 16:53:13 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 |
On 18/06/20 16:29, Peter Maydell wrote: >> - tz_ppc_dummy_ops which is broken and should just use NULL ops > Why is it broken? The intention is to create a MemoryRegion > which asserts if it's ever used (because it is a QEMU bug if > board code ever actually maps that MemoryRegion into anything). > NULL ops doesn't do that, it creates a MemoryRegion whose accesses > all report an error to the guest. I meant "broken by the assertions" but yeah the NULL ops suggestion is wrong. I misread tz_ppc_dummy_accepts as "return false" (which is exactly what you get from NULL ops) instead of "g_assert_not_reached()". Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |