diff --git a/src/cpu-supp.c b/src/cpu-supp.c index 7377bdf4..c6d42fbe 100644 --- a/src/cpu-supp.c +++ b/src/cpu-supp.c @@ -29,8 +29,8 @@ static pthread_mutex_t irq_mutex = PTHREAD_MUTEX_INITIALIZER; uint8_t cpu65_flags_encode[256] = { 0 }; uint8_t cpu65_flags_decode[256] = { 0 }; -void *cpu65_vmem_r[sizeof(void*) * 256] = { 0 }; -void *cpu65_vmem_w[sizeof(void*) * 256] = { 0 }; +void *cpu65_vmem_r[256] = { 0 }; +void *cpu65_vmem_w[256] = { 0 }; #if CPU_TRACING static int8_t opargs[3] = { 0 }; diff --git a/src/cpu.h b/src/cpu.h index a50871a9..1fe822e6 100644 --- a/src/cpu.h +++ b/src/cpu.h @@ -47,8 +47,8 @@ extern bool cpu65_loadState(StateHelper_s *helper); extern void cpu65_direct_write(int ea,int data); -extern void *cpu65_vmem_r[sizeof(void*) * 256]; -extern void *cpu65_vmem_w[sizeof(void*) * 256]; +extern void *cpu65_vmem_r[256]; +extern void *cpu65_vmem_w[256]; extern uint8_t cpu65_flags_encode[256]; extern uint8_t cpu65_flags_decode[256];