US 11,748,099 B2
Method for executing instructions, device, and computer readable storage medium
Chao Tang, Beijing (CN); and Xueliang Du, Beijing (CN)
Assigned to BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY, CO., LTD., Beijing (CN)
Filed by BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY CO., LTD., Beijing (CN)
Filed on Jul. 16, 2021, as Appl. No. 17/377,548.
Claims priority of application No. 202010700198.X (CN), filed on Jul. 20, 2020.
Prior Publication US 2021/0342149 A1, Nov. 4, 2021
Int. Cl. G06F 9/50 (2006.01); G06F 11/34 (2006.01); G06F 9/30 (2018.01)
CPC G06F 9/3004 (2013.01) 14 Claims
OG exemplary drawing
 
1. A method for executing instructions, comprising:
obtaining a first memory access instruction for execution, wherein the first memory access instruction comprises a first address range of a memory to be accessed;
in response to detecting a predetermined instruction for monitoring an accessed address range of the memory, executing the predetermined instruction to obtain a remaining address range not yet accessed by the first memory access instruction in the first address range;
comparing the remaining address range with a second address range comprised in a second memory access instruction to be executed;
suspending execution of the second memory access instruction in response to the remaining address range at least partially overlapping with the second address range;
continuing to execute the suspended second memory access instruction in response to an overlapping range between the remaining address range and the second address range having been accessed by the first memory access instruction; and
executing the second memory access instruction in response to the remaining address range not overlapping with the second address range.