• A
    target-ppc: Use right page size with hash table lookup · ad3e67d0
    Aneesh Kumar K.V 提交于
    We look at two sizes specified in ISA (4K, 64K). If not found matching,
    we consider it 16MB.
    
    Without this patch we would fail to lookup address above 16MB range.
    Below 16MB happened to work before because the kernel have a liner
    mapping and we always looked up hash for 0xc000000000000000. The
    actual real address was computed by using the 16MB offset
    with the real address found with the above hash.
    
    Without Fix:
    (gdb) x/16x 0xc000000001000000
    0xc000000001000000 <list_entries+453208>:       Cannot access memory at address 0xc000000001000000
    (gdb)
    
    With Fix:
    (gdb)  x/16x 0xc000000001000000
    0xc000000001000000 <list_entries+453208>:       0x00000000      0x00000000      0x00000000      0x00000000
    0xc000000001000010 <list_entries+453224>:       0x00000000      0x00000000      0x00000000      0x00000000
    0xc000000001000020 <list_entries+453240>:       0x00000000      0x00000000      0x00000000      0x00000000
    0xc000000001000030 <list_entries+453256>:       0x00000000      0x00000000      0x00000000      0x00000000
    Signed-off-by: NAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
    Reviewed-by: NDavid Gibson <david@gibson.dropbear.id.au>
    Signed-off-by: NAlexander Graf <agraf@suse.de>
    ad3e67d0
mmu-hash64.c 18.0 KB