mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
target/arm/cpu: remove inline stubs for aarch32 emulation
Directly condition associated calls in target/arm/helper.c for now. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-ID: <20250325045915.994760-23-pierrick.bouvier@linaro.org>
This commit is contained in:
committed by
Richard Henderson
parent
77b0893f60
commit
63de8825af
@@ -1222,7 +1222,6 @@ int arm_cpu_write_elf32_note(WriteCoreDumpFunction f, CPUState *cs,
|
||||
*/
|
||||
void arm_emulate_firmware_reset(CPUState *cpustate, int target_el);
|
||||
|
||||
#ifdef TARGET_AARCH64
|
||||
int aarch64_cpu_gdb_read_register(CPUState *cpu, GByteArray *buf, int reg);
|
||||
int aarch64_cpu_gdb_write_register(CPUState *cpu, uint8_t *buf, int reg);
|
||||
void aarch64_sve_narrow_vq(CPUARMState *env, unsigned vq);
|
||||
@@ -1254,13 +1253,6 @@ static inline uint64_t *sve_bswap64(uint64_t *dst, uint64_t *src, int nr)
|
||||
#endif
|
||||
}
|
||||
|
||||
#else
|
||||
static inline void aarch64_sve_narrow_vq(CPUARMState *env, unsigned vq) { }
|
||||
static inline void aarch64_sve_change_el(CPUARMState *env, int o,
|
||||
int n, bool a)
|
||||
{ }
|
||||
#endif
|
||||
|
||||
void aarch64_sync_32_to_64(CPUARMState *env);
|
||||
void aarch64_sync_64_to_32(CPUARMState *env);
|
||||
|
||||
|
||||
@@ -6563,7 +6563,9 @@ static void zcr_write(CPUARMState *env, const ARMCPRegInfo *ri,
|
||||
*/
|
||||
new_len = sve_vqm1_for_el(env, cur_el);
|
||||
if (new_len < old_len) {
|
||||
#ifdef TARGET_AARCH64
|
||||
aarch64_sve_narrow_vq(env, new_len + 1);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10628,7 +10630,9 @@ static void arm_cpu_do_interrupt_aarch64(CPUState *cs)
|
||||
* Note that new_el can never be 0. If cur_el is 0, then
|
||||
* el0_a64 is is_a64(), else el0_a64 is ignored.
|
||||
*/
|
||||
#ifdef TARGET_AARCH64
|
||||
aarch64_sve_change_el(env, cur_el, new_el, is_a64(env));
|
||||
#endif
|
||||
}
|
||||
|
||||
if (cur_el < new_el) {
|
||||
@@ -11640,7 +11644,9 @@ void aarch64_sve_change_el(CPUARMState *env, int old_el,
|
||||
|
||||
/* When changing vector length, clear inaccessible state. */
|
||||
if (new_len < old_len) {
|
||||
#ifdef TARGET_AARCH64
|
||||
aarch64_sve_narrow_vq(env, new_len + 1);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user