Skip to content

Commit

Permalink
Add struct members for floats.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Nov 13, 2023
1 parent 55c5644 commit 5dc1771
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions handwritten/hexagon_arch_c/functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,7 @@ RZ_API HexInsn *hexagon_alloc_instr() {
if (!hi) {
RZ_LOG_FATAL("Could not allocate memory for new instruction.\n");
}
hi->fround_mode = RZ_FLOAT_RMODE_RNE;
return hi;
}

Expand Down
1 change: 1 addition & 0 deletions handwritten/hexagon_h/typedefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ typedef struct {
HexOp ops[HEX_MAX_OPERANDS]; ///< The operands of the instructions.
HexILInsn il_insn; ///< RZIL instruction. These are not meant for execution! Use the packet ops for that.
ut8 slot; ///< The slot the instruction occupies.
RzFloatRMode fround_mode; ///< The float rounding mode of the instruction.
} HexInsn;

/**
Expand Down
2 changes: 1 addition & 1 deletion rzil_compiler

0 comments on commit 5dc1771

Please sign in to comment.