The invention provides a return address
backup method and device,
computer equipment and a storage medium, and the method comprises the steps: obtaining a
return address stack (RAS) corresponding to a first pipeline
processing unit, and configuring RASs corresponding to at least one second pipeline
processing unit; obtaining a to-be-processed
instruction sequence, and performing pipeline
processing on the to-be-processed
instruction sequence; in the process of performing
assembly line processing on the
instruction sequence to be processed, responding to
assembly line flushing operation initiated by a target
assembly line processing unit,
copying an RAS corresponding to the target
assembly line processing unit into an RAS corresponding to the first
assembly line processing unit, the target
assembly line processing unit is one of the at least one second assembly line processing unit. Based on the scheme of the invention, the RAS
backup can be realized by setting the RAS in the second assembly line processing unit, so that the influence of assembly line scouring on the RAS is eliminated, and the accuracy of the RAS for predicting the return address is improved.