rizinorg / rz-rzilcompiler

C to RZIL Compiler to extend the Rizin Hexagon plugin.
4 stars 2 forks source link

Implement `memX_locked` instructions #23

Open Rot127 opened 8 months ago

Rot127 commented 8 months ago

locked load and and conditional stores are used for thread safe storing and loading (see ISA v73 5.12 Atomic operations).

Currently they are not implemented yet, because RzIL doesn't support concurrency. Since those instructions are relatively rare we can skip them in the beginning until someone needs them.

Though here is the outline how to implement them: