From fc65d46a2f82d54a6a24ea4cde9f4c2e0d0bb1a7 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 22 Jul 2025 15:24:13 -0400 Subject: oemu: types: Add addr_t type The addr_t type represents any kind of memory address. We also assign paddr_t to addr_t. Signed-off-by: Ian Moffett --- usr.bin/oemu/include/oemu/types.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.bin/oemu') diff --git a/usr.bin/oemu/include/oemu/types.h b/usr.bin/oemu/include/oemu/types.h index 0769c84..caf6e9b 100644 --- a/usr.bin/oemu/include/oemu/types.h +++ b/usr.bin/oemu/include/oemu/types.h @@ -33,7 +33,8 @@ #include typedef uint64_t reg_t; -typedef uintptr_t paddr_t; +typedef uintptr_t addr_t; typedef uint16_t imm_t; +typedef addr_t paddr_t; #endif /* !_OEMU_TYPES_H_ */ -- cgit v1.2.3