xref: /qemu/target/arm/tcg-stubs.c (revision 73f81da0a3628180409a0ae90ece19534bcdf09b)
1 /*
2  * QEMU ARM stubs for some TCG helper functions
3  *
4  * Copyright 2021 SUSE LLC
5  *
6  * This work is licensed under the terms of the GNU GPL, version 2 or later.
7  * See the COPYING file in the top-level directory.
8  */
9 
10 #include "qemu/osdep.h"
11 #include "cpu.h"
12 #include "internals.h"
13 
14 void write_v7m_exception(CPUARMState *env, uint32_t new_exc)
15 {
16     g_assert_not_reached();
17 }
18 
19 void raise_exception_ra(CPUARMState *env, uint32_t excp, uint32_t syndrome,
20                         uint32_t target_el, uintptr_t ra)
21 {
22     g_assert_not_reached();
23 }
24 
25 /* TLBI insns are only used by TCG, so we don't need to do anything for KVM */
26 void define_tlb_insn_regs(ARMCPU *cpu)
27 {
28 }
29 
30 /* With KVM, we never use float_status, so these can be no-ops */
31 void arm_set_default_fp_behaviours(float_status *s)
32 {
33 }
34 
35 void arm_set_ah_fp_behaviours(float_status *s)
36 {
37 }
38 
39 uint32_t vfp_get_fpsr_from_host(CPUARMState *env)
40 {
41     return 0;
42 }
43 
44 void vfp_clear_float_status_exc_flags(CPUARMState *env)
45 {
46 }
47 
48 void vfp_set_fpcr_to_host(CPUARMState *env, uint32_t val, uint32_t mask)
49 {
50 }
51