From 5dc1771f12044e9b2cf7f8c570de9b68a832e288 Mon Sep 17 00:00:00 2001 From: Rot127 Date: Sun, 12 Nov 2023 19:10:27 -0500 Subject: [PATCH] Add struct members for floats. --- handwritten/hexagon_arch_c/functions.c | 1 + handwritten/hexagon_h/typedefs.h | 1 + rzil_compiler | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/handwritten/hexagon_arch_c/functions.c b/handwritten/hexagon_arch_c/functions.c index 2dc53846..f63b578e 100644 --- a/handwritten/hexagon_arch_c/functions.c +++ b/handwritten/hexagon_arch_c/functions.c @@ -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; } diff --git a/handwritten/hexagon_h/typedefs.h b/handwritten/hexagon_h/typedefs.h index 067c4966..3ae9b086 100644 --- a/handwritten/hexagon_h/typedefs.h +++ b/handwritten/hexagon_h/typedefs.h @@ -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; /** diff --git a/rzil_compiler b/rzil_compiler index d94615d4..79b4ad96 160000 --- a/rzil_compiler +++ b/rzil_compiler @@ -1 +1 @@ -Subproject commit d94615d4bbe5494de45e1e6b9d1802b51f7a338e +Subproject commit 79b4ad96a854e2a28e5f8b3a3a0d1a0262b1bda2