aboutsummaryrefslogtreecommitdiff
path: root/arch/dummy/arch.j2.c
diff options
context:
space:
mode:
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));