Revision d9ba4830 target-arm/op_helper.c

b/target-arm/op_helper.c
436 436
    res |= do_usat(((int32_t)x) >> 16, shift) << 16;
437 437
    return res;
438 438
}
439

  
440
void HELPER(wfi)(void)
441
{
442
    env->exception_index = EXCP_HLT;
443
    env->halted = 1;
444
    cpu_loop_exit();
445
}
446

  
447
void HELPER(exception)(uint32_t excp)
448
{
449
    env->exception_index = excp;
450
    cpu_loop_exit();
451
}
452

  
453
uint32_t HELPER(cpsr_read)(void)
454
{
455
    return cpsr_read(env) & ~CPSR_EXEC;
456
}
457

  
458
void HELPER(cpsr_write)(uint32_t val, uint32_t mask)
459
{
460
    cpsr_write(env, val, mask);
461
}

Also available in: Unified diff