Skip to content

Commit 2273195

Browse files
committed
map width
1 parent 7f93a02 commit 2273195

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/translate.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,10 @@ fn map_val(riscv_val: RiscVVal, riscv_width: &RiscVWidth) -> ArmVal {
159159
fn map_width(riscv_width: &RiscVWidth) -> ArmWidth {
160160
// todo!()
161161
// FIXME: do real implementation
162-
ArmWidth::Double
162+
match riscv_width {
163+
RiscVWidth::Double => ArmWidth::Double,
164+
RiscVWidth::Word => ArmWidth::Word
165+
}
163166
}
164167

165168
// Translate every instruction 1:1

0 commit comments

Comments
 (0)