driver refactoring

This commit is contained in:
Blaise Tine
2021-11-14 09:05:15 -05:00
parent 808bddb586
commit 27a65fdee7
27 changed files with 200 additions and 198 deletions

View File

@@ -7,6 +7,8 @@
#include <mem.h>
#include "simulator.h"
#define RAM_PAGE_SIZE 4096
using namespace vortex;
static void show_usage() {
@@ -49,7 +51,7 @@ int main(int argc, char **argv) {
for (auto program : programs) {
std::cout << "Running " << program << "..." << std::endl;
vortex::RAM ram((1<<12), (1<<20));
vortex::RAM ram(RAM_PAGE_SIZE);
vortex::Simulator simulator;
simulator.attach_ram(&ram);