-
公开(公告)号:EP3007071A4
公开(公告)日:2016-04-13
申请号:EP13885481
申请日:2013-12-02
申请人: HUAWEI TECH CO LTD
发明人: ZHANG LIXIN , ZHANG KE , ZHANG YI , ZHANG LELE
IPC分类号: G06F12/10
CPC分类号: G06F12/1027 , G06F2212/681 , Y02D10/13
摘要: The present invention discloses a method and an apparatus for determining a physical address, which relate to the field of computer technologies, may use a set associative TLB that supports multiple page sizes to obtain the physical address, and reduce power consumption. 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. It is appropriate to use the present disclosure when a physical address is determined by using a linear address.