Revision 73e5716c target-sh4/cpu.h
b/target-sh4/cpu.h | ||
---|---|---|
240 | 240 |
#define MMU_MODE0_SUFFIX _kernel |
241 | 241 |
#define MMU_MODE1_SUFFIX _user |
242 | 242 |
#define MMU_USER_IDX 1 |
243 |
static inline int cpu_mmu_index (CPUState *env) |
|
243 |
static inline int cpu_mmu_index (CPUSH4State *env)
|
|
244 | 244 |
{ |
245 | 245 |
return (env->sr & SR_MD) == 0 ? 1 : 0; |
246 | 246 |
} |
247 | 247 |
|
248 | 248 |
#if defined(CONFIG_USER_ONLY) |
249 |
static inline void cpu_clone_regs(CPUState *env, target_ulong newsp) |
|
249 |
static inline void cpu_clone_regs(CPUSH4State *env, target_ulong newsp)
|
|
250 | 250 |
{ |
251 | 251 |
if (newsp) |
252 | 252 |
env->gregs[15] = newsp; |
... | ... | |
348 | 348 |
|
349 | 349 |
#define TB_FLAG_PENDING_MOVCA (1 << 4) |
350 | 350 |
|
351 |
static inline void cpu_get_tb_cpu_state(CPUState *env, target_ulong *pc, |
|
351 |
static inline void cpu_get_tb_cpu_state(CPUSH4State *env, target_ulong *pc,
|
|
352 | 352 |
target_ulong *cs_base, int *flags) |
353 | 353 |
{ |
354 | 354 |
*pc = env->pc; |
... | ... | |
361 | 361 |
| (env->movcal_backup ? TB_FLAG_PENDING_MOVCA : 0); /* Bit 4 */ |
362 | 362 |
} |
363 | 363 |
|
364 |
static inline bool cpu_has_work(CPUState *env) |
|
364 |
static inline bool cpu_has_work(CPUSH4State *env)
|
|
365 | 365 |
{ |
366 | 366 |
return env->interrupt_request & CPU_INTERRUPT_HARD; |
367 | 367 |
} |
368 | 368 |
|
369 | 369 |
#include "exec-all.h" |
370 | 370 |
|
371 |
static inline void cpu_pc_from_tb(CPUState *env, TranslationBlock *tb) |
|
371 |
static inline void cpu_pc_from_tb(CPUSH4State *env, TranslationBlock *tb)
|
|
372 | 372 |
{ |
373 | 373 |
env->pc = tb->pc; |
374 | 374 |
env->flags = tb->flags; |
Also available in: Unified diff