aboutgitcodelistschat:MatrixIRC
path: root/common
diff options
context:
space:
mode:
authorAlice Frosi <afrosi@redhat.com>2023-05-17 08:17:06 +0200
committerAlice Frosi <afrosi@redhat.com>2023-05-17 11:00:06 +0200
commit504d9e38a528ca8bf6f658223a1935e9bc537d8a (patch)
tree722ccef57b467de309a30a2e7742da033b69db42 /common
parent16346c99a674d95970cfc59b0aa5d00e91cc4e0f (diff)
downloadseitan-504d9e38a528ca8bf6f658223a1935e9bc537d8a.tar
seitan-504d9e38a528ca8bf6f658223a1935e9bc537d8a.tar.gz
seitan-504d9e38a528ca8bf6f658223a1935e9bc537d8a.tar.bz2
seitan-504d9e38a528ca8bf6f658223a1935e9bc537d8a.tar.lz
seitan-504d9e38a528ca8bf6f658223a1935e9bc537d8a.tar.xz
seitan-504d9e38a528ca8bf6f658223a1935e9bc537d8a.tar.zst
seitan-504d9e38a528ca8bf6f658223a1935e9bc537d8a.zip
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
Diffstat (limited to 'common')
-rw-r--r--common/gluten.h8
1 files changed, 8 insertions, 0 deletions
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;
};