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" --- io/event.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'io/event.h') diff --git a/io/event.h b/io/event.h index 02f3fab..2da3323 100644 --- a/io/event.h +++ b/io/event.h @@ -1,14 +1,15 @@ #pragma once +#include #include #include "isa/isa.h" struct event { ctlreg reg; - unsigned int mask; - unsigned int value; - event(ctlreg reg, unsigned int value, unsigned int mask=~0) + std::uint_fast32_t mask; + std::uint_fast32_t value; + event(ctlreg reg, std::uint_fast32_t value, std::uint_fast32_t mask=~0) : reg(reg) , mask(mask) , value(value) -- cgit v1.2.3