SPARC LEON power-down support added

Signed-off-by: Ronald Hecht <address@hidden>
Signed-off-by: Fabien Chouteau <chouteau@adacore.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
Ronald Hecht 2013-02-19 12:45:07 +01:00 committed by Blue Swirl
parent 7a0a9c2c64
commit d1c36ba707
5 changed files with 19 additions and 1 deletions

View file

@ -225,3 +225,14 @@ target_ulong helper_tsubcctv(CPUSPARCState *env, target_ulong src1,
cpu_restore_state(env, GETPC());
helper_raise_exception(env, TT_TOVF);
}
#ifndef TARGET_SPARC64
void helper_power_down(CPUSPARCState *env)
{
env->halted = 1;
env->exception_index = EXCP_HLT;
env->pc = env->npc;
env->npc = env->pc + 4;
cpu_loop_exit(env);
}
#endif