From d1c36ba707637173b818652e51181370d51b6c58 Mon Sep 17 00:00:00 2001 From: Ronald Hecht Date: Tue, 19 Feb 2013 12:45:07 +0100 Subject: SPARC LEON power-down support added Signed-off-by: Ronald Hecht Signed-off-by: Fabien Chouteau Signed-off-by: Blue Swirl --- target-sparc/translate.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'target-sparc/translate.c') diff --git a/target-sparc/translate.c b/target-sparc/translate.c index ca75e1aa48..26c2056b93 100644 --- a/target-sparc/translate.c +++ b/target-sparc/translate.c @@ -3642,6 +3642,11 @@ static void disas_sparc_insn(DisasContext * dc, unsigned int insn) in the SPARCv8 manual, nop on the microSPARC II */ + if ((rd == 0x13) && (dc->def->features & + CPU_FEATURE_POWERDOWN)) { + /* LEON3 power-down */ + gen_helper_power_down(cpu_env); + } break; #else case 0x2: /* V9 wrccr */ -- cgit v1.2.3