How could I encode an AArch64 instruction to 32 bit instruction code in DR standalone mode?

19 views
Skip to first unread message

songyan tang

unread,
Dec 6, 2021, 7:50:25 AM12/6/21
to DynamoRIO Users
for example, I have a function like this:
unsigned char* encode(const std::string& inst)
{
    // how to implement?
}

What I want:
auto code = encode("WFE");
// code is 0xd503205f

Derek Bruening

unread,
Dec 6, 2021, 6:55:08 PM12/6/21
to dynamor...@googlegroups.com
Sounds like https://github.com/DynamoRIO/dynamorio/issues/4510 which would be nice to have.  Today you would have to use INSTR_CREATE_wfe.

--
You received this message because you are subscribed to the Google Groups "DynamoRIO Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dynamorio-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dynamorio-users/b55e5ce5-6fa3-4213-9617-e1c4ee459533n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages