summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorJulian Blake Kongslie2022-09-22 11:29:07 -0700
committerJulian Blake Kongslie2022-09-22 11:29:07 -0700
commiteb3fd68203fee7c63245c702914c2acd3332d65a (patch)
tree7796707c0372e7fbe4a8bac70aad95f619e8ba29 /main.cpp
downloadprocmodel-eb3fd68203fee7c63245c702914c2acd3332d65a.tar.xz
Initial commit.
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
new file mode 100644
index 0000000..02796fd
--- /dev/null
+++ b/main.cpp
@@ -0,0 +1,22 @@
1#include <fstream>
2#include <iostream>
3
4#include "cpu.h"
5#include "infra/pipetrace.h"
6#include "infra/sim.h"
7
8int main(int argc, const char *argv[]) {
9 infra::pt::ptfile = &std::cout;
10
11 cpu cpu;
12
13 for (int i = 1; i < argc; ++i) {
14 std::ifstream fh{argv[i]};
15 cpu.dram.load(fh);
16 }
17
18 for (unsigned int i = 0; i < 1000; ++i)
19 infra::sim::advance();
20
21 return 0;
22}