[PULL 2/6] Hexagon: add PC alignment check and exception

2024-06-08 Thread Brian Cain
From: Matheus Tavares Bernardino The Hexagon Programmer's Reference Manual says that the exception 0x1e should be raised upon an unaligned program counter. Let's implement that and also add some tests. Signed-off-by: Matheus Tavares Bernardino Reviewed-by: Richard Henderson Reviewed-by: Taylor

[PULL 1/6] Hexagon: fix HVX store new

2024-06-08 Thread Brian Cain
From: Matheus Tavares Bernardino At 09a7e7db0f (Hexagon (target/hexagon) Remove uses of op_regs_generated.h.inc, 2024-03-06), we've changed the logic of check_new_value() to use the new pre-calculated packet->insn[...].dest_idx instead of calculating the index on the fly using opcode_reginfo[...]

[PULL 4/6] target/hexagon: idef-parser remove undefined functions

2024-06-08 Thread Brian Cain
From: Anton Johansson Signed-off-by: Anton Johansson Reviewed-by: Taylor Simpson Reviewed-by: Brian Cain Message-Id: <20240523125901.27797-3-a...@rev.ng> Signed-off-by: Brian Cain --- target/hexagon/idef-parser/parser-helpers.h | 13 - 1 file changed, 13 deletions(-) diff --git

[PULL 6/6] target/hexagon: idef-parser simplify predicate init

2024-06-08 Thread Brian Cain
From: Anton Johansson Only predicate instruction arguments need to be initialized by idef-parser. This commit removes registers from the init_list and simplifies gen_inst_init_args() slightly. Signed-off-by: Anton Johansson Reviewed-by: Taylor Simpson Reviewed-by: Brian Cain Message-Id: <2024

[PULL 3/6] target/hexagon: idef-parser remove unused defines

2024-06-08 Thread Brian Cain
From: Anton Johansson Before switching to GArray/g_string_printf we used fixed size arrays for output buffers and instructions arguments among other things. Macros defining the sizes of these buffers were left behind, remove them. Signed-off-by: Anton Johansson Reviewed-by: Taylor Simpson Rev

[PULL 5/6] target/hexagon: idef-parser fix leak of init_list

2024-06-08 Thread Brian Cain
From: Anton Johansson gen_inst_init_args() is called for instructions using a predicate as an rvalue. Upon first call, the list of arguments which might need initialization init_list is freed to indicate that they have been processed. For instructions without an rvalue predicate, gen_inst_init_ar

[PATCH] target/riscv: Fix froundnx.h nanbox check

2024-06-08 Thread Branislav Brzak
helper_froundnx_h function mistakenly uses single percision nanbox check instead of the half percision one. This patch fixes the issue. Signed-off-by: Branislav Brzak --- target/riscv/fpu_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/riscv/fpu_helper.c b/tar

<    1   2