Physical address determining method and apparatus, computing device, and storage medium
AssigneeHuawei Technologies Co., Ltd.
InventorsWei Pan, Haijun Xie, Pingyu Wu
Life of this patent
Estimating the term…
Abstract
A physical address determining method and apparatus, a computing device, and a storage medium, where the method includes generating an input tag based on a virtual page number in a first virtual address, which is matched with a plurality of entries in a page table cache. If the input tag successfully matches a first entry in the plurality of entries, and a combination flag bit in the first entry indicates that a page table entry corresponding to the first entry is a combined entry, a physical address corresponding to the first virtual address is determined based on the virtual page number in the first virtual address and an entry tag and a physical page number in the first entry.
Claims20
A physical address determining method, comprising:
- generating an input tag based on a virtual page number in a to-be-translated first virtual address;
- matching the input tag with a plurality of entries in a page table cache, wherein each entry comprises an entry tag, a physical page number, and a combination flag bit, and the combination flag bit indicates whether a page table entry corresponding to the entry is a combined entry;
- and
- determining, if the input tag successfully matches a first entry in the plurality of entries and a combination flag bit in the first entry indicates that a page table entry corresponding to the first entry is a combined entry, a physical address corresponding to the first virtual address based on the virtual page number in the first virtual address and an entry tag and a physical page number in the first entry.
A computing device, comprising
- a non-transitory memory storing a computer program;
- and
- one or more processors coupled to the memory and configured to execute the computer program to cause the computing device to:
- generate an input tag based on a virtual page number in a to-be-translated first virtual address;
- match the input tag with a plurality of entries in a page table cache, wherein each entry comprises an entry tag, a physical page number, and a combination flag bit, and the combination flag bit indicates whether a page table entry corresponding to the entry is a combined entry;
- and
- determine, if the input tag successfully matches a first entry in the plurality of entries and a combination flag bit in the first entry indicates that a page table entry corresponding to the first entry is a combined entry, a physical address corresponding to the first virtual address based on the virtual page number in the first virtual address and an entry tag and a physical page number in the first entry.
A non-transitory computer-readable storage medium, comprising computer program instructions that, when executed by a computing device, cause the computing device to perform:
- generating an input tag based on a virtual page number in a to-be-translated first virtual address;
- matching the input tag with a plurality of entries in a page table cache, wherein each entry comprises an entry tag, a physical page number, and a combination flag bit, and the combination flag bit indicates whether a page table entry corresponding to the entry is a combined entry;
- and
- determining, if the input tag successfully matches a first entry in the plurality of entries, and a combination flag bit in the first entry indicates that a page table entry corresponding to the first entry is a combined entry, a physical address corresponding to the first virtual address based on the virtual page number in the first virtual address and an entry tag and a physical page number in the first entry.
Dependencies are inferred from the claim text.