6ce21abd | 25-Feb-2023 |
Richard Henderson <richard.henderson@linaro.org> |
target/arm: Improve arm_rmode_to_sf
Use proper enumeration types for input and output. Use a const array to perform the mapping, with an assert that the input is valid.
Reviewed-by: Philippe Mathie
target/arm: Improve arm_rmode_to_sf
Use proper enumeration types for input and output. Use a const array to perform the mapping, with an assert that the input is valid.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
0b29090a | 25-Feb-2023 |
Richard Henderson <richard.henderson@linaro.org> |
target/arm: Use rmode >= 0 for need_rmode
Initialize rmode to -1 instead of keeping two variables. This is already used elsewhere in translate-a64.c.
Reviewed-by: Philippe Mathieu-Daudé <philmd@lin
target/arm: Use rmode >= 0 for need_rmode
Initialize rmode to -1 instead of keeping two variables. This is already used elsewhere in translate-a64.c.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
4ea5fe99 | 02-Mar-2023 |
Alex Bennée <alex.bennee@linaro.org> |
gdbstub: move register helpers into standalone include
These inline helpers are all used by target specific code so move them out of the general header so we don't needlessly pollute the rest of the
gdbstub: move register helpers into standalone include
These inline helpers are all used by target specific code so move them out of the general header so we don't needlessly pollute the rest of the API with target specific stuff.
Note we have to include cpu.h in semihosting as it was relying on a side effect before.
Reviewed-by: Taylor Simpson <tsimpson@quicinc.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20230302190846.2593720-21-alex.bennee@linaro.org> Message-Id: <20230303025805.625589-21-richard.henderson@linaro.org>
show more ...
|
6c867651 | 27-Feb-2023 |
David Reiss <dreiss@meta.com> |
target/arm: Export arm_v7m_get_sp_ptr
Allow the function to be used outside of m_helper.c. Move to be outside of ifndef CONFIG_USER_ONLY block. Rename from get_v7m_sp_ptr.
Reviewed-by: Peter Maydel
target/arm: Export arm_v7m_get_sp_ptr
Allow the function to be used outside of m_helper.c. Move to be outside of ifndef CONFIG_USER_ONLY block. Rename from get_v7m_sp_ptr.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: David Reiss <dreiss@meta.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20230227213329.793795-14-richard.henderson@linaro.org [rth: Split out of a larger patch] Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
show more ...
|
48688c94 | 27-Feb-2023 |
David Reiss <dreiss@meta.com> |
target/arm: Export arm_v7m_mrs_control
Allow the function to be used outside of m_helper.c. Rename with an "arm_" prefix.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe
target/arm: Export arm_v7m_mrs_control
Allow the function to be used outside of m_helper.c. Rename with an "arm_" prefix.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: David Reiss <dreiss@meta.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20230227213329.793795-13-richard.henderson@linaro.org [rth: Split out of a larger patch] Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
show more ...
|
abf1f1b0 | 27-Feb-2023 |
Richard Henderson <richard.henderson@linaro.org> |
target/arm: Create pauth_ptr_mask
Keep the logic for pauth within pauth_helper.c, and expose a helper function for use with the gdbstub pac extension.
Reviewed-by: Peter Maydell <peter.maydell@lina
target/arm: Create pauth_ptr_mask
Keep the logic for pauth within pauth_helper.c, and expose a helper function for use with the gdbstub pac extension.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20230227213329.793795-11-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
show more ...
|
9cf1fe2c | 24-Feb-2023 |
Richard Henderson <richard.henderson@linaro.org> |
target/arm: Drop tcg_temp_free from translator.h
Translators are no longer required to free tcg temporaries.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <
target/arm: Drop tcg_temp_free from translator.h
Translators are no longer required to free tcg temporaries.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
29a01a90 | 24-Feb-2023 |
Richard Henderson <richard.henderson@linaro.org> |
target/arm: Drop tcg_temp_free from translator-vfp.c
Translators are no longer required to free tcg temporaries.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henders
target/arm: Drop tcg_temp_free from translator-vfp.c
Translators are no longer required to free tcg temporaries.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
bd46e45a | 24-Feb-2023 |
Richard Henderson <richard.henderson@linaro.org> |
target/arm: Drop tcg_temp_free from translator-sve.c
Translators are no longer required to free tcg temporaries.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henders
target/arm: Drop tcg_temp_free from translator-sve.c
Translators are no longer required to free tcg temporaries.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
481972a9 | 24-Feb-2023 |
Richard Henderson <richard.henderson@linaro.org> |
target/arm: Drop tcg_temp_free from translator-sme.c
Translators are no longer required to free tcg temporaries.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henders
target/arm: Drop tcg_temp_free from translator-sme.c
Translators are no longer required to free tcg temporaries.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
24f4531d | 24-Feb-2023 |
Richard Henderson <richard.henderson@linaro.org> |
target/arm: Drop tcg_temp_free from translator-neon.c
Translators are no longer required to free tcg temporaries.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Hender
target/arm: Drop tcg_temp_free from translator-neon.c
Translators are no longer required to free tcg temporaries.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
02404d8b | 24-Feb-2023 |
Richard Henderson <richard.henderson@linaro.org> |
target/arm: Drop tcg_temp_free from translator-mve.c
Translators are no longer required to free tcg temporaries.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henders
target/arm: Drop tcg_temp_free from translator-mve.c
Translators are no longer required to free tcg temporaries.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
fa03160f | 24-Feb-2023 |
Richard Henderson <richard.henderson@linaro.org> |
target/arm: Drop tcg_temp_free from translator-m-nocp.c
Translators are no longer required to free tcg temporaries.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Hend
target/arm: Drop tcg_temp_free from translator-m-nocp.c
Translators are no longer required to free tcg temporaries.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
659aed5f | 24-Feb-2023 |
Richard Henderson <richard.henderson@linaro.org> |
target/arm: Drop tcg_temp_free from translator-a64.c
Translators are no longer required to free tcg temporaries.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henders
target/arm: Drop tcg_temp_free from translator-a64.c
Translators are no longer required to free tcg temporaries.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
2503e60d | 24-Feb-2023 |
Richard Henderson <richard.henderson@linaro.org> |
target/arm: Drop new_tmp_a64_zero
Only the use within cpu_reg requires a writable temp, so inline new_tmp_a64_zero there. All other uses are fine with a constant temp, so use tcg_constant_i64(0).
target/arm: Drop new_tmp_a64_zero
Only the use within cpu_reg requires a writable temp, so inline new_tmp_a64_zero there. All other uses are fine with a constant temp, so use tcg_constant_i64(0).
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
6980b80d | 24-Feb-2023 |
Richard Henderson <richard.henderson@linaro.org> |
target/arm: Drop new_tmp_a64
This is now a simple wrapper for tcg_temp_new_i64.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> |
828fce78 | 24-Feb-2023 |
Richard Henderson <richard.henderson@linaro.org> |
target/arm: Drop DisasContext.tmp_a64
Translators are no longer required to free tcg temporaries, therefore there's no need to record temps for later freeing.
Reviewed-by: Peter Maydell <peter.mayd
target/arm: Drop DisasContext.tmp_a64
Translators are no longer required to free tcg temporaries, therefore there's no need to record temps for later freeing.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
366786e0 | 24-Feb-2023 |
Richard Henderson <richard.henderson@linaro.org> |
target/arm: Drop tcg_temp_free from translator.c
Translators are no longer required to free tcg temporaries.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <
target/arm: Drop tcg_temp_free from translator.c
Translators are no longer required to free tcg temporaries.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
84156ff0 | 24-Feb-2023 |
Richard Henderson <richard.henderson@linaro.org> |
target/arm: Remove value_global from DisasCompare
This field was only used to avoid freeing globals. Since we no longer free any temps, this is dead.
Reviewed-by: Peter Maydell <peter.maydell@linar
target/arm: Remove value_global from DisasCompare
This field was only used to avoid freeing globals. Since we no longer free any temps, this is dead.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
720923ed | 24-Feb-2023 |
Richard Henderson <richard.henderson@linaro.org> |
target/arm: Remove arm_free_cc, a64_free_cc
Translators are no longer required to free tcg temporaries.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richa
target/arm: Remove arm_free_cc, a64_free_cc
Translators are no longer required to free tcg temporaries.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
2a196de1 | 24-Feb-2023 |
Richard Henderson <richard.henderson@linaro.org> |
accel/tcg: Remove translator_loop_temp_check
Finish removing tcg temp free accounting interfaces.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.hen
accel/tcg: Remove translator_loop_temp_check
Finish removing tcg temp free accounting interfaces.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
d4aa49ac | 29-Jan-2023 |
Richard Henderson <richard.henderson@linaro.org> |
target/arm: Don't use tcg_temp_local_new_*
Since tcg_temp_new_* is now identical, use those.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.hender
target/arm: Don't use tcg_temp_local_new_*
Since tcg_temp_new_* is now identical, use those.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
78817d3b | 29-Jan-2023 |
Richard Henderson <richard.henderson@linaro.org> |
target/arm: Drop copies in gen_sve_{ldr,str}
Since we now get TEMP_TB temporaries by default, we no longer need to make copies across these loops. These were the only uses of new_tmp_a64_local(), s
target/arm: Drop copies in gen_sve_{ldr,str}
Since we now get TEMP_TB temporaries by default, we no longer need to make copies across these loops. These were the only uses of new_tmp_a64_local(), so remove that as well.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
597f9b2d | 28-Jan-2023 |
Richard Henderson <richard.henderson@linaro.org> |
accel/tcg: Pass max_insn to gen_intermediate_code by pointer
In preparation for returning the number of insns generated via the same pointer. Adjust only the prototypes so far.
Reviewed-by: Philip
accel/tcg: Pass max_insn to gen_intermediate_code by pointer
In preparation for returning the number of insns generated via the same pointer. Adjust only the prototypes so far.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|
03a648c4 | 27-Feb-2023 |
Anton Johansson <anjo@rev.ng> |
target/arm: Replace `TARGET_TB_PCREL` with `CF_PCREL`
Signed-off-by: Anton Johansson <anjo@rev.ng> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20230227135202.9710-7-anjo@rev
target/arm: Replace `TARGET_TB_PCREL` with `CF_PCREL`
Signed-off-by: Anton Johansson <anjo@rev.ng> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20230227135202.9710-7-anjo@rev.ng> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
show more ...
|