summaryrefslogtreecommitdiff
path: root/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpu.c')
-rw-r--r--cpu.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/cpu.c b/cpu.c
index b36bac8..b8c0bbe 100644
--- a/cpu.c
+++ b/cpu.c
@@ -4428,14 +4428,13 @@ void move_reg(u32 *new_reg)
}
-#define cpu_savestate_builder(type) \
-void cpu_##type##_savestate(file_tag_type savestate_file) \
-{ \
- file_##type(savestate_file, reg, 0x100); \
- file_##type##_array(savestate_file, spsr); \
- file_##type##_array(savestate_file, reg_mode); \
-} \
-
-cpu_savestate_builder(read);
-cpu_savestate_builder(write_mem);
+#define cpu_savestate_builder(type) \
+void cpu_##type##_savestate(void) \
+{ \
+ state_mem_##type(reg, 0x100); \
+ state_mem_##type##_array(spsr); \
+ state_mem_##type##_array(reg_mode); \
+}
+cpu_savestate_builder(read)
+cpu_savestate_builder(write)