summaryrefslogtreecommitdiff
path: root/isa/checker.h
diff options
context:
space:
mode:
authorJulian Blake Kongslie2022-10-16 16:24:49 -0700
committerJulian Blake Kongslie2022-10-16 16:24:49 -0700
commita59407a215d6112c2e20b1a746b33742209e5f87 (patch)
tree64ba2fc875ad1985be10d7b8e6d23deb39d49b3e /isa/checker.h
parentStrip the leader from palbart output (diff)
downloadbiggolf-a59407a215d6112c2e20b1a746b33742209e5f87.tar.xz
Support for log-based event model
Diffstat (limited to 'isa/checker.h')
-rw-r--r--isa/checker.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/isa/checker.h b/isa/checker.h
index d70997f..332c483 100644
--- a/isa/checker.h
+++ b/isa/checker.h
@@ -3,6 +3,7 @@
3#include <array> 3#include <array>
4#include <map> 4#include <map>
5 5
6#include "io/model.h"
6#include "isa/isa.h" 7#include "isa/isa.h"
7 8
8struct funcmem { 9struct funcmem {
@@ -41,10 +42,11 @@ struct checker {
41 unsigned int mq = 0; 42 unsigned int mq = 0;
42 unsigned int pc = 00200; 43 unsigned int pc = 00200;
43 std::array<unsigned int, NUM_CTLREGS> ctlregs; 44 std::array<unsigned int, NUM_CTLREGS> ctlregs;
45 iomodel &system;
44 instruction_context inst; 46 instruction_context inst;
45 bool halted = false;
46 funcmem mem; 47 funcmem mem;
47 checker() 48 checker(iomodel &system)
49 : system(system)
48 { 50 {
49 ctlregs.fill(0); 51 ctlregs.fill(0);
50 } 52 }