aboutsummaryrefslogtreecommitdiff
path: root/target-sparc/translate.c
diff options
context:
space:
mode:
authorRonald Hecht <ronald.hecht@gmx.de>2013-02-19 12:45:07 +0100
committerBlue Swirl <blauwirbel@gmail.com>2013-02-23 10:00:43 +0000
commitd1c36ba707637173b818652e51181370d51b6c58 (patch)
tree43480b6285574c951391d9557ce53debe409a441 /target-sparc/translate.c
parent7a0a9c2c64be242d5953d5ce6172976b05f6c14f (diff)
downloadqemu-d1c36ba707637173b818652e51181370d51b6c58.zip
qemu-d1c36ba707637173b818652e51181370d51b6c58.tar.gz
qemu-d1c36ba707637173b818652e51181370d51b6c58.tar.bz2
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>
Diffstat (limited to 'target-sparc/translate.c')
-rw-r--r--target-sparc/translate.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/target-sparc/translate.c b/target-sparc/translate.c
index ca75e1a..26c2056 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 */