-
Notifications
You must be signed in to change notification settings - Fork 556
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i#3544 RV64: Implement tp, stolen reg and lr/sc sequence mangling (#6419
) This patch implements several mangling procedures for tp, stolen reg, and lr/sc sequences. 1. For any instruction using tp or stolen register, we use a scratch register to hold the app value and mangle the instr to use that scratch register. 2. For the lr/sc sequence, a similar approach to AARCHXX's exclusive monitor is adopted: mangling LR to a normal load, and SC to a compare-and-swap. The function name (mangle_exclusive_monitor_op) is kept unchanged for simplicity. Note there are several places that are left unimplemented, they are rarely used in practice, so it should be okay to implement it later. Issue: #3544
- Loading branch information
Showing
8 changed files
with
560 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.