Changeset a0f6a61 in mainline


Ignore:
Timestamp:
2008-02-05T11:06:53Z (17 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b07c332
Parents:
c053f615
Message:

prettyprint tlb command

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/src/mm/tlb.c

    rc053f615 ra0f6a61  
    468468        entry_lo_t lo0, lo1;
    469469        entry_hi_t hi, hi_save;
    470         int i;
     470        unsigned int i;
    471471
    472472        hi_save.value = cp0_entry_hi_read();
    473 
    474         printf("TLB:\n");
     473       
     474        printf("#  ASID VPN2   MASK G V D C PFN\n");
     475        printf("-- ---- ------ ---- - - - - ------\n");
     476       
    475477        for (i = 0; i < TLB_ENTRY_COUNT; i++) {
    476478                cp0_index_write(i);
     
    482484                lo1.value = cp0_entry_lo1_read();
    483485               
    484                 printf("%d: asid=%d, vpn2=%d, mask=%d\tg[0]=%d, v[0]=%d, d[0]=%d, c[0]=%hhd, pfn[0]=%d\n"
    485                        "\t\t\t\tg[1]=%d, v[1]=%d, d[1]=%d, c[1]=%hhd, pfn[1]=%d\n",
    486                        i, hi.asid, hi.vpn2, mask.mask, lo0.g, lo0.v, lo0.d, lo0.c, lo0.pfn,
    487                        lo1.g, lo1.v, lo1.d, lo1.c, lo1.pfn);
     486                printf("%-2u %-4u %#6x %#4x %1u %1u %1u %1u %#6x\n",
     487                        i, hi.asid, hi.vpn2, mask.mask,
     488                        lo0.g, lo0.v, lo0.d, lo0.c, lo0.pfn);
     489                printf("                    %1u %1u %1u %1u %#6x\n",
     490                        lo1.g, lo1.v, lo1.d, lo1.c, lo1.pfn);
    488491        }
    489492       
Note: See TracChangeset for help on using the changeset viewer.