Plant the seed for the tlocal bool in RAnalOp ##analysis

This commit is contained in:
pancake 2023-09-13 16:45:51 +02:00 committed by GitHub
parent 58cf7a4a4b
commit fd0933cbeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -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));

View File

@ -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 */