esp32 compile fix

This commit is contained in:
folkert van heusden 2022-03-22 13:19:32 +01:00
parent 04eb498f88
commit 3b46f29ab1
2 changed files with 4 additions and 1 deletions

View file

@ -2,6 +2,7 @@
// Released under Apache License v2.0
#include <assert.h>
#include <stdio.h>
#include <string.h>
#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()

2
bus.h
View file

@ -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 };