esp32 compile fix
This commit is contained in:
parent
04eb498f88
commit
3b46f29ab1
2 changed files with 4 additions and 1 deletions
3
bus.cpp
3
bus.cpp
|
@ -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
2
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 };
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue