summaryrefslogtreecommitdiff
path: root/io/model.cpp
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.cpp
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 'io/model.cpp')
-rw-r--r--io/model.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/io/model.cpp b/io/model.cpp
index d6e36f9..4b37be4 100644
--- a/io/model.cpp
+++ b/io/model.cpp
@@ -6,7 +6,7 @@
6#include "io/model.h" 6#include "io/model.h"
7#include "isa/isa.h" 7#include "isa/isa.h"
8 8
9bool iomodel::interact(std::array<unsigned int, NUM_CTLREGS> &ctlregs) { 9bool iomodel::interact(std::array<std::uint_fast32_t, NUM_CTLREGS> &ctlregs) {
10 auto [ebegin, eend] = log.equal_range(time); 10 auto [ebegin, eend] = log.equal_range(time);
11 for (auto e = ebegin; e != eend; ++e) { 11 for (auto e = ebegin; e != eend; ++e) {
12 auto &r = ctlregs[e->second.reg]; 12 auto &r = ctlregs[e->second.reg];