summaryrefslogtreecommitdiff
path: root/src/arch/x86/isa/decoder
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-01-25 20:32:43 -0800
committerGabe Black <gblack@eecs.umich.edu>2009-01-25 20:32:43 -0800
commit3c5988b86c9fcb06927a8e12095e278b55593911 (patch)
tree37791cbfb0c3b9a972179070c7b92752247d5649 /src/arch/x86/isa/decoder
parent919c3e7fb6675c35fdc8d54aebb13c6e938de4b9 (diff)
downloadgem5-3c5988b86c9fcb06927a8e12095e278b55593911.tar.xz
X86: Implement the bswap instruction.
Diffstat (limited to 'src/arch/x86/isa/decoder')
-rw-r--r--src/arch/x86/isa/decoder/two_byte_opcodes.isa6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/arch/x86/isa/decoder/two_byte_opcodes.isa b/src/arch/x86/isa/decoder/two_byte_opcodes.isa
index 4ebe03d84..064f5ce86 100644
--- a/src/arch/x86/isa/decoder/two_byte_opcodes.isa
+++ b/src/arch/x86/isa/decoder/two_byte_opcodes.isa
@@ -915,7 +915,11 @@
default: Inst::UD2();
}
}
- 0x19: bswap_B();
+ 0x19: decode OPSIZE {
+ 4: Inst::BSWAP_D(Bd);
+ 8: Inst::BSWAP_Q(Bq);
+ default: Inst::UD2();
+ }
0x1A: decode LEGACY_DECODEVAL {
// no prefix
0x0: decode OPCODE_OP_BOTTOM3 {