stage2 sparcv9: Add initial toU32 function for serialization

This commit is contained in:
Koakuma 2022-03-13 20:25:25 +07:00
parent a212d5931d
commit 92c262aa93

View File

@ -444,4 +444,8 @@ pub const Instruction = union(enum) {
opf_low: u6,
rs2: u5,
},
pub fn toU32(self: Instruction) u32 {
return @bitCast(u32, self);
}
};