发明名称 |
METHOD AND APPARATUS FOR DETERMINING PHYSICAL ADDRESS |
摘要 |
A method and an apparatus for determining a physical address are disclosed. According to the present disclosure, a page size is obtained according to the higher-order N bits of a linear address, where N is greater than 0 and less than a quantity of bits of the linear address; an index number of a translation lookaside buffer TLB is obtained according to the page size; a mask is obtained according to the page size and a supported minimum page size; a label of the TLB is obtained according to the mask; the higher-order MAC1 bits of a physical address corresponding to the linear address are obtained by searching the TLB according to the index number and the label; and the physical address is obtained according to the mask, the supported minimum page, and the higher-order MAC1 bits of the physical address. |
申请公布号 |
US2016098357(A1) |
申请公布日期 |
2016.04.07 |
申请号 |
US201514951608 |
申请日期 |
2015.11.25 |
申请人 |
HUAWEI TECHNOLOGIES CO., LTD. |
发明人 |
ZHANG Lixin;Zhang Ke;Zhang Yi;Zhang Lele |
分类号 |
G06F12/10 |
主分类号 |
G06F12/10 |
代理机构 |
|
代理人 |
|
主权项 |
1. A method for determining a physical address, which is used to convert a linear address into the physical address, comprising:
obtaining a page size according to the higher-order N bits of the linear address, wherein N is greater than 0 and less than a quantity of bits of the linear address; obtaining an index number of a translation lookaside buffer TLB according to the page size; obtaining a mask according to the page size and a supported minimum page size; obtaining a label of the TLB according to the mask; obtaining, by searching the TLB according to the index number and the label, the higher-order MAC1 bits of a physical address corresponding to the linear address; and obtaining the physical address according to the mask, the supported minimum page size, and the higher-order MAC1 bits of the physical address, wherein the physical address is used for memory access. |
地址 |
Shenzhen CN |