From 7a5087952b4074e4a6665f850f1fa103fba1f4e8 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 21 Jul 2025 04:12:23 -0400 Subject: oasm: emit: Add 'unused' field to instruction Signed-off-by: Ian Moffett --- usr.bin/oasm/include/oasm/emit.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr.bin') diff --git a/usr.bin/oasm/include/oasm/emit.h b/usr.bin/oasm/include/oasm/emit.h index e4ed83c..f4b4f77 100644 --- a/usr.bin/oasm/include/oasm/emit.h +++ b/usr.bin/oasm/include/oasm/emit.h @@ -91,7 +91,10 @@ typedef uint16_t imm_t; typedef struct { uint8_t opcode; uint8_t rd; - uint16_t imm; + union { + uint16_t imm; + uint16_t unused; + }; } inst_t; struct emit_state { -- cgit v1.2.3