摘要 |
What is provided is a load page table entry address function defined for a machine architecture of a computer system. In one embodiment, a machine instruction is obtained which contains an opcode indicating that a load page table entry address function is to be performed. The machine instruction contains an M field, a first field identifying a first general register, and a second field identifying a second general register. Based on the contents of the M field, an initial origin address of a hierarchy of address translation tables having at least one segment table is obtained. Based on the obtained initial origin address, dynamic address translation is performed until a page table entry is obtained. The page table entry address is saved in the identified first general register. |
主权项 |
1. A computer program product for performing a load page table entry address (LPTEA) function in a computer system of a machine architecture, said computer system configured to translate a virtual address into a translated address of a block of data in main storage, the computer system having a hierarchy of translation tables for translation of said virtual address, said hierarchy of translation tables comprising a format control translation table containing one or more format control translation table entries, each of said one or more format control translation table entries comprising a format control field and a format control address field, wherein format of fields of the format control translation table entries is determined by the format control field, said load page table entry address function defined for said machine architecture, the computer program product comprising:
a tangible non-transitory computer readable storage medium readable by said computer system, said computer readable medium storing instructions for performing: executing, by the computer system, a machine instruction, said machine instruction comprising an opcode for a Load Page Table Entry Address (LPTEA) instruction, the executing comprising: based on an address to be translated specified by said LPTEA instruction, accessing an associated format control translation table (AFCTT) entry of an AFCTT of the hierarchy of translation tables; determining, by the computer system, based on a format control field of the AFCTT entry, whether to save a value of a first form of the format control address field of the AFCTT entry or a value of an address field contained in another translation table entry located by a second form of the format control address field of the AFCTT entry; and saving the determined value to be saved in a first general register specified by the LPTEA instruction. |