mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-12-02 18:47:30 +00:00
fix setting writeback for post index memory accesses
This commit is contained in:
parent
c42effd51c
commit
63547c70d4
@ -1379,8 +1379,15 @@ void AArch64_post_printer(csh handle, cs_insn *flat_insn, char *insn_asm, MCInst
|
||||
return;
|
||||
|
||||
// check if this insn requests write-back
|
||||
if (strrchr(insn_asm, '!') != NULL)
|
||||
if (strrchr(insn_asm, '!') != NULL) {
|
||||
flat_insn->detail->arm64.writeback = true;
|
||||
} else {
|
||||
// check for post-index ... [reg], #offset
|
||||
const char * lb = strrchr(insn_asm, ']');
|
||||
if (lb != NULL && lb[1] == ',') {
|
||||
flat_insn->detail->arm64.writeback = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user