From 504d9e38a528ca8bf6f658223a1935e9bc537d8a Mon Sep 17 00:00:00 2001 From: Alice Frosi Date: Wed, 17 May 2023 08:17:06 +0200 Subject: ops: add op_nr and op_copy Add: - missing implementation for op_nr - op_copy to copy data - tests for op_nr and op_data --- common/gluten.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'common') diff --git a/common/gluten.h b/common/gluten.h index ff29caa..07f4148 100644 --- a/common/gluten.h +++ b/common/gluten.h @@ -103,6 +103,7 @@ enum op_type { OP_LOAD, OP_CMP, OP_RESOLVEDFD, + OP_COPY, }; struct op_nr { @@ -161,6 +162,12 @@ struct op_resolvedfd { unsigned int jmp; }; +struct op_copy { + struct gluten_offset src; + struct gluten_offset dst; + size_t size; +}; + struct op { enum op_type type; union { @@ -172,6 +179,7 @@ struct op { struct op_load load; struct op_cmp cmp; struct op_resolvedfd resfd; + struct op_copy copy; } op; }; -- cgit v1.2.3