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 /isa/checker.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-- | isa/checker.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/isa/checker.h b/isa/checker.h index 332c483..571bbc8 100644 --- a/isa/checker.h +++ b/isa/checker.h | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | #pragma once | 1 | #pragma once |
| 2 | 2 | ||
| 3 | #include <array> | 3 | #include <array> |
| 4 | #include <cstdint> | ||
| 4 | #include <map> | 5 | #include <map> |
| 5 | 6 | ||
| 6 | #include "io/model.h" | 7 | #include "io/model.h" |
| @@ -41,7 +42,7 @@ struct checker { | |||
| 41 | unsigned int link = 0; | 42 | unsigned int link = 0; |
| 42 | unsigned int mq = 0; | 43 | unsigned int mq = 0; |
| 43 | unsigned int pc = 00200; | 44 | unsigned int pc = 00200; |
| 44 | std::array<unsigned int, NUM_CTLREGS> ctlregs; | 45 | std::array<std::uint_fast32_t, NUM_CTLREGS> ctlregs; |
| 45 | iomodel &system; | 46 | iomodel &system; |
| 46 | instruction_context inst; | 47 | instruction_context inst; |
| 47 | funcmem mem; | 48 | funcmem mem; |
