Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
target-sh4: implement gUSA algorithm
SH kernel has implemented a gUSA ("g" User Space Atomicity) support
for the user space atomicity. gUSA is triggered by a negative value
in the stack pointer (R15).
We try to identify the atomicity macros provided by the glibc and
replace them with a real atomic operation.
Signed-off-by: Laurent Vivier <laurent@vivier.eu>- Loading branch information
Showing
3 changed files
with
289 additions
and
5 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # See docs/tracing.txt for syntax documentation. | ||
|
|
||
| # target-sh4/translate.c | ||
| gUSA_atomic_xchg(uint32_t pc, int addr_reg, int work_reg, int update_reg, int memop) "%08x: address: r%d result: r%d update with: r%d memop: %x" | ||
| gUSA_atomic_unknown_op(uint32_t pc, uint16_t opc) "%08x: unknown operation %04x" | ||
| gUSA_atomic_cmpxchg(uint32_t pc, int addr_reg, int work_reg, int cmp_reg, int update_reg, int memop) "%08x: address: r%d work: r%d cmp: r%d update with: r%d memop: %x" | ||
| gUSA_atomic_fetch_or(uint32_t pc, int addr_reg, int work_reg, int result_reg, int update_reg, int memop) "%08x: address: r%d work: r%d result: r%d update with: r%d memop: %x" | ||
| gUSA_atomic_or_fetch(uint32_t pc, int addr_reg, int work_reg, int op_reg, int memop) "%08x: address: r%d work: r%d op: r%d memop: %x" | ||
| gUSA_atomic_add_fetch(uint32_t pc, int addr_reg, int work_reg, int op_reg, int memop) "%08x: address: r%d work: r%d op: r%d memop: %x" | ||
| gUSA_atomic_addi_fetch(uint32_t pc, int addr_reg, int work_reg, int imm, int memop) "%08x: address: r%d work: r%d imm: %08x memop: %x" |
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