On 11/04/2017 09:42, Xu, Anthony wrote:
>> I think this is wrong, the high copy should remain read-only or pflash
>> stops working when you remove PAM.
>
> I tried to set pc.bios as read-only and isa.bios as read&write,
> it doesn't work. render_memory_region doesn't honor readonly
> field of al
> I think this is wrong, the high copy should remain read-only or pflash
> stops working when you remove PAM.
I tried to set pc.bios as read-only and isa.bios as read&write,
it doesn't work. render_memory_region doesn't honor readonly
field of alias MemoryRegion.
Two FlatRanges created for pc.bi
On 08/04/2017 08:45, Anthony Xu wrote:
> -if (!isapc_ram_fw) {
> -memory_region_set_readonly(bios, true);
> +if (PC_MACHINE(current_machine)->pam) {
> +/* if PAM is disabled, set it as readwrite */
> +if (!isapc_ram_fw) {
> +memory_region_set_readonly(b
when pam is disabled, set pc.bios and isa.bios region as writeable,
and add isa.bios to system memory region.
Signed-off-by: Anthony Xu
---
hw/i386/pc.c | 2 +-
hw/i386/pc_sysfw.c | 30 +-
include/hw/i386/pc.h | 4 +++-
3 files changed, 25 insertions(+), 1