diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2015-03-29 09:31:43 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-06-05 17:10:00 +0200 |
commit | ec05ec26f940564b1e07bf88857035ec27e21dd8 (patch) | |
tree | c9fdeb52da1302c3eec2a3792c5a711c03a76ae5 /target-alpha/cpu.c | |
parent | 5f2cb94688bd0b2c88e0fc1ac3c4582965b7b106 (diff) |
memory: use mr->ram_addr in "is this RAM?" assertions
mr->terminates alone doesn't guarantee that we are looking at a RAM region.
mr->ram_addr also has to be checked, in order to distinguish RAM and I/O
regions.
So, do the following:
1) add a new define RAM_ADDR_INVALID, and test it in the assertions
instead of mr->terminates
2) IOMMU regions were not setting mr->ram_addr to a bogus value, initialize
it in the instance_init function so that the new assertions would fire
for IOMMU regions as well.
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target-alpha/cpu.c')
0 files changed, 0 insertions, 0 deletions