From ff66523bb076a246c2fc159f0f76947bd6f84fc1 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Sat, 29 Oct 2022 12:55:08 -0700 Subject: Control register values should not be "unsigned int" --- isa/isa.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'isa/isa.h') diff --git a/isa/isa.h b/isa/isa.h index 1ad5a77..84a783c 100644 --- a/isa/isa.h +++ b/isa/isa.h @@ -1,5 +1,6 @@ #pragma once +#include #include #include @@ -49,7 +50,7 @@ struct instruction_context { unsigned int next_pc; // includes IF std::optional init_address; // includes DF std::optional final_address; // includes DF - std::optional ctlval; + std::optional ctlval; // control registers may be larger than 16 bits (e.g. TT_BITS) std::optional data; std::optional acc; std::optional link; -- cgit v1.2.3