From 3b46f29ab1de93a33767ea60d2c9474a08af40dd Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Tue, 22 Mar 2022 13:19:32 +0100 Subject: [PATCH] esp32 compile fix --- bus.cpp | 3 +++ bus.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bus.cpp b/bus.cpp index c051c59..9eb937c 100644 --- a/bus.cpp +++ b/bus.cpp @@ -2,6 +2,7 @@ // Released under Apache License v2.0 #include #include +#include #include "bus.h" #include "gen.h" @@ -30,6 +31,8 @@ bus::bus() } CPUERR = MMR0 = MMR1 = MMR2 = MMR3 = PIR = CSR = 0; + + memset(pages, 0x00, sizeof pages); } bus::~bus() diff --git a/bus.h b/bus.h index ebbe125..92441f3 100644 --- a/bus.h +++ b/bus.h @@ -29,7 +29,7 @@ private: memory *m { nullptr }; - page_t pages[4][16] { { 0, 0 } }; + page_t pages[4][16]; uint16_t MMR0 { 0 }, MMR1 { 0 }, MMR2 { 0 }, MMR3 { 0 }, CPUERR { 0 }, PIR { 0 }, CSR { 0 };