]> git.proxmox.com Git - qemu.git/commitdiff
target-alpha: Disassemble EV6 PALcode instructions.
authorRichard Henderson <rth@twiddle.net>
Sun, 10 Apr 2011 17:31:20 +0000 (10:31 -0700)
committerRichard Henderson <rth@anchor.twiddle.net>
Tue, 31 May 2011 17:18:04 +0000 (10:18 -0700)
The QEMU emulation PALcode will use EV6 PALcode insns regardless
of the "real" cpu instruction set being emulated.

Signed-off-by: Richard Henderson <rth@twiddle.net>
alpha-dis.c
dis-asm.h
disas.c

index 8a2411e4d56d9e6ef90ea4db972a48d79da113bd..ae331b35b8f0836be907e59affbb94abebb44e67 100644 (file)
@@ -238,10 +238,6 @@ extern const unsigned alpha_num_operands;
 #define AXP_REG_SP     30
 #define AXP_REG_ZERO   31
 
-#define bfd_mach_alpha_ev4  0x10
-#define bfd_mach_alpha_ev5  0x20
-#define bfd_mach_alpha_ev6  0x30
-
 enum bfd_reloc_code_real {
     BFD_RELOC_23_PCREL_S2,
     BFD_RELOC_ALPHA_HINT
index 296537ad3a06a8c84185ba9aceaa733f168f0733..5b07d7f3a04ebd99cfe5d142a2c0f7a512b78441 100644 (file)
--- a/dis-asm.h
+++ b/dis-asm.h
@@ -184,6 +184,9 @@ enum bfd_architecture
 #define bfd_mach_sh5        0x50
   bfd_arch_alpha,      /* Dec Alpha */
 #define bfd_mach_alpha 1
+#define bfd_mach_alpha_ev4  0x10
+#define bfd_mach_alpha_ev5  0x20
+#define bfd_mach_alpha_ev6  0x30
   bfd_arch_arm,        /* Advanced Risc Machines ARM */
 #define bfd_mach_arm_unknown   0
 #define bfd_mach_arm_2         1
diff --git a/disas.c b/disas.c
index 223606cc50293f09af73659711bad3397e6a094f..d208c52402895a906e9efe9c5b2a8f382f95f4d8 100644 (file)
--- a/disas.c
+++ b/disas.c
@@ -205,7 +205,7 @@ void target_disas(FILE *out, target_ulong code, target_ulong size, int flags)
     disasm_info.mach = bfd_mach_sh4;
     print_insn = print_insn_sh;
 #elif defined(TARGET_ALPHA)
-    disasm_info.mach = bfd_mach_alpha;
+    disasm_info.mach = bfd_mach_alpha_ev6;
     print_insn = print_insn_alpha;
 #elif defined(TARGET_CRIS)
     if (flags != 32) {