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.h | |
| 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.h | 5 |
1 files changed, 4 insertions, 1 deletions
| @@ -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 | }; |
