diff options
| author | Julian Blake Kongslie | 2022-10-29 12:55:08 -0700 |
|---|---|---|
| committer | Julian Blake Kongslie | 2022-10-29 13:14:13 -0700 |
| commit | ff66523bb076a246c2fc159f0f76947bd6f84fc1 (patch) | |
| tree | 63dbffc8be3c41eb5ec2f74dd7919f5f34a25a53 /io/model.cpp | |
| parent | Add untested interrupt-based echo program with input buffer (diff) | |
| download | biggolf-ff66523bb076a246c2fc159f0f76947bd6f84fc1.tar.xz | |
Control register values should not be "unsigned int"
Diffstat (limited to '')
| -rw-r--r-- | io/model.cpp | 2 |
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 | ||
| 9 | bool iomodel::interact(std::array<unsigned int, NUM_CTLREGS> &ctlregs) { | 9 | bool 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]; |
