diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2017-12-13 17:52:28 +0000 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-12-21 09:30:32 +0100 |
commit | 8af36743c26372789b1c92606dd181b2a6d2ad53 (patch) | |
tree | e4da7dc33687c0aaacc576ae0263b50a59e522ba /hw/mips | |
parent | e38bc23454ef763deb4405ebdee6a1081aa00bc8 (diff) | |
download | qemu-8af36743c26372789b1c92606dd181b2a6d2ad53.zip qemu-8af36743c26372789b1c92606dd181b2a6d2ad53.tar.gz qemu-8af36743c26372789b1c92606dd181b2a6d2ad53.tar.bz2 |
exec: Don't reuse unassigned_mem_ops for io_mem_rom
We set up the io_mem_rom special memory region using the
unassigned_mem_ops structure; this is then used when a guest tries to
write to ROM. This is incorrect, because the behaviour of unassigned
memory may be different from that of ROM for writes. In particular,
on some architectures writing to unassigned memory generates a guest
exception, whereas writing to ROM is generally ignored. Use a
special readonly_mem_ops for this purpose instead, so writes to
ROM are ignored for all guest CPUs.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <1513187549-2435-2-git-send-email-peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/mips')
0 files changed, 0 insertions, 0 deletions