pgtt/codegen.py
def _mk_table( n:int, t:table.Table ) -> str:
    """
    Generate assembly to begin programming a translation table.

    args
    ====

        n
                    table number in sequential order from ttbr0_eln

        t
                    translation table being programmed
    """
    return f"""
/* program_table_{n} */
    MOV64   x21, {hex(t.addr)}          // base address of this table
    add     x21, x21, x20       // add global base
    MOV64   x22, {hex(t.chunk)}         // chunk size"""

    Generate assembly to begin programming a translation table.

    args
    ====

        n
                    table number in sequential order from ttbr0_eln

        t
                    translation table being programmed
    
Generate assembly to begin programming a translation table.
args

n
table number in sequential order from ttbr0_eln

t
translation table being programmed
Generate assembly to begin programming a translation table . args n table number in sequential order from ttbr0_eln t translation table being programmed
def _mk_table( n:int, t:table.Table ) -> str:
    return f"""
/* program_table_{n} */
    MOV64   x21, {hex(t.addr)}          // base address of this table
    add     x21, x21, x20       // add global base
    MOV64   x22, {hex(t.chunk)}         // chunk size"""
def _mk_table ( n : int , t : table . Table ) -> str : return f"""
/* program_table_{n} */
    MOV64   x21, {hex(t.addr)}          // base address of this table
    add     x21, x21, x20       // add global base
    MOV64   x22, {hex(t.chunk)}         // chunk size"""
Generate assembly to begin programming a translation table.
Generate assembly to begin programming a translation table .
"""
    Generate assembly to begin programming a translation table.

    args
    ====

        n
                    table number in sequential order from ttbr0_eln

        t
                    translation table being programmed
    """
n
int
t
table.Table