summaryrefslogtreecommitdiff
path: root/io/model.h
diff options
context:
space:
mode:
authorJulian Blake Kongslie2022-10-29 12:55:08 -0700
committerJulian Blake Kongslie2022-10-29 13:14:13 -0700
commitff66523bb076a246c2fc159f0f76947bd6f84fc1 (patch)
tree63dbffc8be3c41eb5ec2f74dd7919f5f34a25a53 /io/model.h
parentAdd untested interrupt-based echo program with input buffer (diff)
downloadbiggolf-ff66523bb076a246c2fc159f0f76947bd6f84fc1.tar.xz
Control register values should not be "unsigned int"
Diffstat (limited to '')
-rw-r--r--io/model.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/io/model.h b/io/model.h
index c7199ea..8758a43 100644
--- a/io/model.h
+++ b/io/model.h
@@ -2,6 +2,7 @@
2 2
3#include <array> 3#include <array>
4#include <cstdint> 4#include <cstdint>
5#include <istream>
5 6
6#include "io/event.h" 7#include "io/event.h"
7#include "isa/isa.h" 8#include "isa/isa.h"
@@ -11,5 +12,7 @@ struct iomodel {
11 12
12 event_log log; 13 event_log log;
13 std::uint64_t time = 0; 14 std::uint64_t time = 0;
14 bool interact(std::array<unsigned int, NUM_CTLREGS> &ctlregs); 15 bool interact(std::array<std::uint_fast32_t, NUM_CTLREGS> &ctlregs);
16
17 void load_evt(std::istream &fh);
15}; 18};