diff options
| author | Julian Blake Kongslie | 2022-06-26 21:48:45 -0700 |
|---|---|---|
| committer | Julian Blake Kongslie | 2022-06-26 22:06:21 -0700 |
| commit | e7c2eeb6c82d5341019cbb00cfefc55c8a27f232 (patch) | |
| tree | d8293bce0cb5323133f849390e60419c16636b18 /main.cpp | |
| parent | Significant changes, and a working "ISA" that just computes fib(n). (diff) | |
| download | issim-e7c2eeb6c82d5341019cbb00cfefc55c8a27f232.tar.xz | |
Move a bunch of code from headers to separate compilation units.
Diffstat (limited to 'main.cpp')
| -rw-r--r-- | main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -8,8 +8,8 @@ | |||
| 8 | #include "aisa/aisa.h" | 8 | #include "aisa/aisa.h" |
| 9 | #include "aisa/async.h" | 9 | #include "aisa/async.h" |
| 10 | #include "aisa/simple-models.h" | 10 | #include "aisa/simple-models.h" |
| 11 | #include "fib/fib.h" | ||
| 11 | #include "git-tag.h" | 12 | #include "git-tag.h" |
| 12 | #include "isa/fib/fib.h" | ||
| 13 | 13 | ||
| 14 | const bool show_mem_fetch = false; | 14 | const bool show_mem_fetch = false; |
| 15 | const bool show_mem_store = true; | 15 | const bool show_mem_store = true; |
| @@ -21,7 +21,7 @@ int main(int argc, const char *argv[]) | |||
| 21 | { | 21 | { |
| 22 | std::cout << "Version " << GIT_TAG << "\n"; | 22 | std::cout << "Version " << GIT_TAG << "\n"; |
| 23 | 23 | ||
| 24 | isa::fib::Fib<2> fib; | 24 | fib::Fib<2> fib; |
| 25 | 25 | ||
| 26 | struct Eval : public aisa::AsyncEval<Eval>, aisa::PagedMem<>, aisa::TaskStack, aisa::VectorRF { | 26 | struct Eval : public aisa::AsyncEval<Eval>, aisa::PagedMem<>, aisa::TaskStack, aisa::VectorRF { |
| 27 | bool fetch_mem(aisa::byte_t *bytes, aisa::addr_t addr, aisa::addr_t size) | 27 | bool fetch_mem(aisa::byte_t *bytes, aisa::addr_t addr, aisa::addr_t size) |
| @@ -55,7 +55,7 @@ int main(int argc, const char *argv[]) | |||
| 55 | { | 55 | { |
| 56 | if (aisa::VectorRF::store_reg(rn, rv)) { | 56 | if (aisa::VectorRF::store_reg(rn, rv)) { |
| 57 | if (show_regs) | 57 | if (show_regs) |
| 58 | fmt::print(".{} = {}\n", isa::fib::Reg::disasm(rn), rv); | 58 | fmt::print(".{} = {}\n", fib::Reg::disasm(rn), rv); |
| 59 | return true; | 59 | return true; |
| 60 | } | 60 | } |
| 61 | return false; | 61 | return false; |
