-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Labels
Good first issueGood issue to get started and contribute to MaatGood issue to get started and contribute to MaatbindingsPython bindingsPython bindingsideaInteresting ideas that aren't really direct feature requestsInteresting ideas that aren't really direct feature requests
Description
We should expose the Arch class in python bindings so that users can use the generic pc and sp getters, and allow to get the size of an arbitrary register.
Contrary to the native C++ Arch API, the Python wrapper should use strings to identify registers, instead of reg_t, since it will integrate better with the way the CPU is exposed in bindings (with a dynamic attribute getter that uses the register names, rather than their reg_t number.
Acceptance criteria:
Archclass is exposed in bindings with methods:pc(): return the name of the program countersp(): return the name of the stack pointerreg_size(<reg>): return the size in bits of the register
MaatEnginehas anarchattribute accessible from python bindings
Metadata
Metadata
Assignees
Labels
Good first issueGood issue to get started and contribute to MaatGood issue to get started and contribute to MaatbindingsPython bindingsPython bindingsideaInteresting ideas that aren't really direct feature requestsInteresting ideas that aren't really direct feature requests