Commit Diff


commit - f90074f5241fd3337a63a92785764d3460fa6cde
commit + f526e7ff9893b68ad37545f7fe91ec7db7cfdade
blob - 684502fb6349e72eeefd9b684a72400af6d18215
blob + 0c878a1eb542bb6bcc634b8e842d5721fdaccc2a
--- src/cpu.c
+++ src/cpu.c
@@ -24,7 +24,7 @@ u64 cpu_get (size_t reg)
 
 u32 cpu_fetch (void)
 {
-	const u32 i = *(const u32 *)(size_t)pc;
+	const u32 i = read_u32 (pc);
 	next_pc = pc + 4;
 	return i;
 }