mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
Replace always_inline with inline
We define inline as always_inline. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
facd285778
commit
636aa20056
13 changed files with 355 additions and 371 deletions
|
@ -39,20 +39,21 @@ register struct CPUAlphaState *env asm(AREG0);
|
|||
#include "softmmu_exec.h"
|
||||
#endif /* !defined(CONFIG_USER_ONLY) */
|
||||
|
||||
static always_inline void env_to_regs(void)
|
||||
static inline void env_to_regs(void)
|
||||
{
|
||||
}
|
||||
|
||||
static always_inline void regs_to_env(void)
|
||||
static inline void regs_to_env(void)
|
||||
{
|
||||
}
|
||||
|
||||
static always_inline int cpu_has_work(CPUState *env)
|
||||
static inline int cpu_has_work(CPUState *env)
|
||||
{
|
||||
return (env->interrupt_request & CPU_INTERRUPT_HARD);
|
||||
}
|
||||
|
||||
static always_inline int cpu_halted(CPUState *env) {
|
||||
static inline int cpu_halted(CPUState *env)
|
||||
{
|
||||
if (!env->halted)
|
||||
return 0;
|
||||
if (cpu_has_work(env)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue