Commit da4e6625 authored by David Johnson's avatar David Johnson
Browse files

When getting page prot bits in Linux targets, get arch-indep version.

When loading vm_area_structs, we used to return the arch-specific
vm_page_prot field.  That field is arch-specific, meaning it is ready to
be loaded into a PTE.  The non-arch-specific field is vm_flags.  So, we
really want to return the non-arch-specific since we're at the semantic
layer.  If this causes problems, we can add an arch-specific field, too.
parent 02de3fdc
Pipeline #1835 passed with stage
in 29084 minutes and 42 seconds
......@@ -8356,7 +8356,7 @@ static struct addrspace *os_linux_space_load(struct target *target,
&start,NULL,err_vmiload);
VLV(target,tlctxt,vma,"vm_end",LOAD_FLAG_NONE,
&end,NULL,err_vmiload);
VLV(target,tlctxt,vma,"vm_page_prot",LOAD_FLAG_NONE,
VLV(target,tlctxt,vma,"vm_flags",LOAD_FLAG_NONE,
&prot_flags,NULL,err_vmiload);
VLV(target,tlctxt,vma,"vm_pgoff",LOAD_FLAG_NONE,
&offset,NULL,err_vmiload);
......@@ -8584,7 +8584,7 @@ static struct addrspace *os_linux_space_load(struct target *target,
LOAD_FLAG_NONE,&start,NULL,err_vmiload);
VLV(target,tlctxt,cached_vma->vma,"vm_end",
LOAD_FLAG_NONE,&end,NULL,err_vmiload);
VLV(target,tlctxt,cached_vma->vma,"vm_page_prot",
VLV(target,tlctxt,cached_vma->vma,"vm_flags",
LOAD_FLAG_NONE,&prot_flags,NULL,err_vmiload);
VLV(target,tlctxt,cached_vma->vma,"vm_pgoff",
LOAD_FLAG_NONE,&offset,NULL,err_vmiload);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment