From e224912f8b10427a16377f9cda0a2dafb6e2ac37 Mon Sep 17 00:00:00 2001 From: Aaron Culliney Date: Thu, 31 Oct 2019 17:37:26 -0700 Subject: [PATCH] Correctly set cpu65_vmem_X function table sizes :P --- src/cpu-supp.c | 4 ++-- src/cpu.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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];