| author | |
| committer | |
| log | 92c262aa9361589dbe6176dbbb8c32a172bdc96c |
| tree | e986caac04f2084f2dcdec2fb5a868df79b3e822 |
| parent | a212d5931d99653de28933499a2a0bded1b8d2db |
1 files changed, 4 insertions(+), 0 deletions(-)
src/arch/sparcv9/bits.zig+4| ... | @@ -444,4 +444,8 @@ pub const Instruction = union(enum) { | ... | @@ -444,4 +444,8 @@ pub const Instruction = union(enum) { |
| 444 | opf_low: u6, | 444 | opf_low: u6, |
| 445 | rs2: u5, | 445 | rs2: u5, |
| 446 | }, | 446 | }, |
| 447 | |||
| 448 | pub fn toU32(self: Instruction) u32 { | ||
| 449 | return @bitCast(u32, self); | ||
| 450 | } | ||
| 447 | }; | 451 | }; |