mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
compiler.h: replace QEMU_NORETURN with G_NORETURN
G_NORETURN was introduced in glib 2.68, fallback to G_GNUC_NORETURN in glib-compat. Note that this attribute must be placed before the function declaration (bringing a bit of consistency in qemu codebase usage). Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Warner Losh <imp@bsdimp.com> Message-Id: <20220420132624.2439741-20-marcandre.lureau@redhat.com>
This commit is contained in:
parent
94ae6b579d
commit
8905770b27
58 changed files with 214 additions and 191 deletions
|
@ -72,8 +72,8 @@ void helper_be_stq_mmu(CPUArchState *env, target_ulong addr, uint64_t val,
|
|||
|
||||
#else
|
||||
|
||||
void QEMU_NORETURN helper_unaligned_ld(CPUArchState *env, target_ulong addr);
|
||||
void QEMU_NORETURN helper_unaligned_st(CPUArchState *env, target_ulong addr);
|
||||
G_NORETURN void helper_unaligned_ld(CPUArchState *env, target_ulong addr);
|
||||
G_NORETURN void helper_unaligned_st(CPUArchState *env, target_ulong addr);
|
||||
|
||||
#endif /* CONFIG_SOFTMMU */
|
||||
#endif /* TCG_LDST_H */
|
||||
|
|
|
@ -398,7 +398,7 @@ typedef TCGv_ptr TCGv_env;
|
|||
#define TCG_CALL_NO_WRITE_GLOBALS 0x0002
|
||||
/* Helper can be safely suppressed if the return value is not used. */
|
||||
#define TCG_CALL_NO_SIDE_EFFECTS 0x0004
|
||||
/* Helper is QEMU_NORETURN. */
|
||||
/* Helper is G_NORETURN. */
|
||||
#define TCG_CALL_NO_RETURN 0x0008
|
||||
|
||||
/* convenience version of most used call flags */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue