aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-10-16 11:04:43 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-10-16 11:04:43 +0100
commit845d864bc0edb32447e49660b2ddd46066891398 (patch)
tree188fa8c245f12daecce2e2e93c2284febba96130
parent4d9b8a04f2b38985470d61971fc7b04104a22937 (diff)
downloadovm-845d864bc0edb32447e49660b2ddd46066891398.tar.gz
ovm-845d864bc0edb32447e49660b2ddd46066891398.tar.bz2
ovm-845d864bc0edb32447e49660b2ddd46066891398.zip
Set opcode after reading parameters in inst_read_byte
-rw-r--r--src/inst.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/inst.c b/src/inst.c
index 49d35d3..9d7bf29 100644
--- a/src/inst.c
+++ b/src/inst.c
@@ -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;
}