authorgravatar for koachan@protonmail.comKoakuma <koachan@protonmail.com> 2022-03-13 20:25:25+07:00
committergravatar for koachan@protonmail.comKoakuma <koachan@protonmail.com> 2022-03-16 21:38:42+07:00
log92c262aa9361589dbe6176dbbb8c32a172bdc96c
treee986caac04f2084f2dcdec2fb5a868df79b3e822
parenta212d5931d99653de28933499a2a0bded1b8d2db

stage2 sparcv9: Add initial toU32 function for serialization


1 files changed, 4 insertions(+), 0 deletions(-)

src/arch/sparcv9/bits.zig+4
......@@ -444,4 +444,8 @@ pub const Instruction = union(enum) {
444444 opf_low: u6,
445445 rs2: u5,
446446 },
447
448 pub fn toU32(self: Instruction) u32 {
449 return @bitCast(u32, self);
450 }
447451};