aboutsummaryrefslogtreecommitdiff
path: root/arch/dummy/arch.j2.c
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2025-11-25 03:20:16 +0100
committerPaul Oliver <contact@pauloliver.dev>2025-11-25 03:20:22 +0100
commitfcf5746e8defdacba2284581a6521f72096891c5 (patch)
treec4403553aa627fc890cfc1b072bea8a471e157e0 /arch/dummy/arch.j2.c
parenta86ef805982aac5f7de5b5f01b3f6de90dd1030d (diff)
Aggregates data on organisms IO activity
Diffstat (limited to 'arch/dummy/arch.j2.c')
-rw-r--r--arch/dummy/arch.j2.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/arch/dummy/arch.j2.c b/arch/dummy/arch.j2.c
index d62d411..c331b34 100644
--- a/arch/dummy/arch.j2.c
+++ b/arch/dummy/arch.j2.c
@@ -6,7 +6,7 @@
// implementing a new architecture.
{% if args.command in ["bench", "new"] and anc_bytes is defined %}
-void arch_anc_init(struct Core *core) {
+void arch_core_init(struct Core *core) {
assert(core);
{% if arch_vars.mvec_loop %}
@@ -28,6 +28,26 @@ void arch_anc_init(struct Core *core) {
}
{% endif %}
+{% if args.command in ["load", "new"] %}
+void arch_core_save(FILE *f, const struct Core *core) {
+ assert(f);
+ assert(core);
+
+ (void)f;
+ (void)core;
+}
+{% endif %}
+
+{% if args.command in ["load"] %}
+void arch_core_load(FILE *f, struct Core *core) {
+ assert(f);
+ assert(core);
+
+ (void)f;
+ (void)core;
+}
+{% endif %}
+
uint64_t arch_proc_mb0_addr(const struct Core *core, uint64_t pix) {
assert(core);
assert(mvec_proc_is_live(core, pix));