Skip to content

Commit

Permalink
fix: memory error if not preinitialized
Browse files Browse the repository at this point in the history
  • Loading branch information
stelcheck committed Apr 16, 2021
1 parent 8832049 commit 9265c91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions higan/sfc/memory/memory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ struct Bus {
auto unmap(const string& address) -> void;

private:
uint8* lookup;
uint32* target;
uint8* lookup = new uint8[16 * 1024 * 1024]();
uint32* target = new uint32[16 * 1024 * 1024]();

static const unsigned fast_page_size_bits = 13;//keep at 13 or lower so the RAM mirrors can be on the fast path
static const unsigned fast_page_size = (1 << fast_page_size_bits);
Expand Down

0 comments on commit 9265c91

Please sign in to comment.