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/isa.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 'isa/isa.h')
| -rw-r--r-- | isa/isa.h | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -1,5 +1,6 @@ | |||
| 1 | #pragma once | 1 | #pragma once |
| 2 | 2 | ||
| 3 | #include <cstdint> | ||
| 3 | #include <functional> | 4 | #include <functional> |
| 4 | #include <optional> | 5 | #include <optional> |
| 5 | 6 | ||
| @@ -49,7 +50,7 @@ struct instruction_context { | |||
| 49 | unsigned int next_pc; // includes IF | 50 | unsigned int next_pc; // includes IF |
| 50 | std::optional<unsigned int> init_address; // includes DF | 51 | std::optional<unsigned int> init_address; // includes DF |
| 51 | std::optional<unsigned int> final_address; // includes DF | 52 | std::optional<unsigned int> final_address; // includes DF |
| 52 | std::optional<unsigned int> ctlval; | 53 | std::optional<std::uint_fast32_t> ctlval; // control registers may be larger than 16 bits (e.g. TT_BITS) |
| 53 | std::optional<unsigned int> data; | 54 | std::optional<unsigned int> data; |
| 54 | std::optional<unsigned int> acc; | 55 | std::optional<unsigned int> acc; |
| 55 | std::optional<bool> link; | 56 | std::optional<bool> link; |
