diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-10-16 11:04:43 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-10-16 11:04:43 +0100 |
commit | 845d864bc0edb32447e49660b2ddd46066891398 (patch) | |
tree | 188fa8c245f12daecce2e2e93c2284febba96130 | |
parent | 4d9b8a04f2b38985470d61971fc7b04104a22937 (diff) | |
download | ovm-845d864bc0edb32447e49660b2ddd46066891398.tar.gz ovm-845d864bc0edb32447e49660b2ddd46066891398.tar.bz2 ovm-845d864bc0edb32447e49660b2ddd46066891398.zip |
Set opcode after reading parameters in inst_read_byte
-rw-r--r-- | src/inst.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -142,5 +142,7 @@ inst_t inst_read_bytecode(darr_t *darr) inst.operand = read_type_from_darr(darr, DATA_TYPE_BYTE); // Otherwise opcode doesn't take operands + inst.opcode = opcode; + return inst; } |