]> git.proxmox.com Git - qemu.git/blobdiff - target-sparc/translate.c
SPARC LEON power-down support added
[qemu.git] / target-sparc / translate.c
index ca75e1aa4845aa5523d5cae5b23ca7120c7d8ff6..26c2056b93bbf60f1f29eb231ebf37dda549c2ae 100644 (file)
@@ -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 */