mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-23 21:29:49 +00:00
Plant the seed for the tlocal bool in RAnalOp ##analysis
This commit is contained in:
parent
58cf7a4a4b
commit
fd0933cbeb
@ -2548,6 +2548,9 @@ static void core_anal_bytes(RCore *core, const ut8 *buf, int len, int nops, int
|
||||
if (op.refptr != -1 && op.refptr > 0) {
|
||||
pj_ki (pj, "refptr", op.refptr);
|
||||
}
|
||||
if (op.tlocal) {
|
||||
pj_kb (pj, "tlocal", true);
|
||||
}
|
||||
pj_ki (pj, "cycles", op.cycles);
|
||||
pj_ki (pj, "failcycles", op.failcycles);
|
||||
pj_ki (pj, "delay", op.delay);
|
||||
@ -2699,6 +2702,9 @@ static void core_anal_bytes(RCore *core, const ut8 *buf, int len, int nops, int
|
||||
if (op.refptr != -1 && op.refptr > 0) {
|
||||
printline ("refptr", "%d\n", op.refptr);
|
||||
}
|
||||
if (op.tlocal) {
|
||||
printline ("tlocal", "%s\n", r_str_bool (op.tlocal));
|
||||
}
|
||||
printline ("size", "%d\n", size);
|
||||
printline ("sign", "%s\n", r_str_bool (op.sign));
|
||||
printline ("type", "%s\n", r_anal_optype_tostring (op.type));
|
||||
|
@ -235,6 +235,7 @@ typedef struct r_anal_op_t {
|
||||
bool weakbytes;
|
||||
ut8 *bytes; /* can be null, but is used for encoding and decoding, malloc of `size` */
|
||||
int size; /* size in bytes of opcode */
|
||||
bool tlocal; // uses the thread local storage
|
||||
int nopcode; /* number of bytes representing the opcode (not the arguments) TODO: find better name */
|
||||
int cycles; /* cpu-cycles taken by instruction */
|
||||
int failcycles; /* conditional cpu-cycles */
|
||||
|
Loading…
Reference in New Issue
Block a user