changeset e1a1d8bba254 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=e1a1d8bba254
description:
X86: Implement the swapgs instruction.
diffstat:
1 file changed, 3 insertions(+)
src/arch/x86/isa/insts/system/segmentation.py | 3 +++
diffs (28 lines):
diff -r 6f1cab082ba7 -r e1a1d8bba254
src/arch/x86/isa/decoder/two_byte_opcodes.isa
--- a/src/arch/x86/isa/decoder/two_byte_opcodes.isa Sun Oct 12 22:55:55
2008 -0700
+++ b/src/arch/x86/isa/decoder/two_byte_opcodes.isa Sun Oct 12 23:00:07
2008 -0700
@@ -128,7 +128,7 @@
0x4: smsw_Rv();
0x6: lmsw_Rv();
0x7: decode MODRM_RM {
- 0x0: swapgs();
+ 0x0: Inst::SWAPGS();
0x1: rdtscp();
default: Inst::UD2();
}
diff -r 6f1cab082ba7 -r e1a1d8bba254
src/arch/x86/isa/insts/system/segmentation.py
--- a/src/arch/x86/isa/insts/system/segmentation.py Sun Oct 12 22:55:55
2008 -0700
+++ b/src/arch/x86/isa/insts/system/segmentation.py Sun Oct 12 23:00:07
2008 -0700
@@ -167,4 +167,12 @@
wrbase idtr, t2
wrlimit idtr, t1
};
+
+def macroop SWAPGS
+{
+ rdval t1, kernel_gs_base, dataSize=8
+ rdbase t2, gs, dataSize=8
+ wrbase gs, t1, dataSize=8
+ wrval kernel_gs_base, t2, dataSize=8
+};
'''
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev