-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
91 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
#ifndef REDREAM_MEMORY_H | ||
#define REDREAM_MEMORY_H | ||
|
||
#include <string.h> | ||
|
||
namespace re { | ||
|
||
#if PLATFORM_WINDOWS | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#include "hw/sh4/sh4.h" | ||
#include "hw/arm7/arm7.h" | ||
#include "hw/aica/aica.h" | ||
#include "hw/gdrom/gdrom.h" | ||
#include "hw/holly/holly.h" | ||
#include "hw/holly/pvr2.h" | ||
#include "hw/holly/tile_accelerator.h" | ||
#include "hw/maple/maple.h" | ||
#include "hw/dreamcast.h" | ||
#include "hw/memory.h" | ||
|
||
using namespace re; | ||
using namespace re::hw; | ||
using namespace re::hw::aica; | ||
using namespace re::hw::arm7; | ||
using namespace re::hw::gdrom; | ||
using namespace re::hw::holly; | ||
using namespace re::hw::maple; | ||
using namespace re::hw::sh4; | ||
using namespace re::renderer; | ||
|
||
Dreamcast::Dreamcast(renderer::Backend *rb) { | ||
sh4 = new SH4(*this); | ||
arm7 = new ARM7(*this); | ||
aica = new AICA(*this); | ||
holly = new Holly(*this); | ||
gdrom = new GDROM(*this); | ||
maple = new Maple(*this); | ||
pvr = new PVR2(*this); | ||
ta = new TileAccelerator(*this, rb); | ||
} | ||
|
||
Dreamcast::~Dreamcast() { | ||
delete sh4; | ||
delete arm7; | ||
delete aica; | ||
delete holly; | ||
delete gdrom; | ||
delete maple; | ||
delete pvr; | ||
delete ta; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#include "core/memory.h" | ||
#include "jit/ir/passes/load_store_elimination_pass.h" | ||
|
||
using namespace re::jit::ir; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#include "core/assert.h" | ||
#include "core/memory.h" | ||
#include "core/profiler.h" | ||
#include "renderer/gl_backend.h" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters