summaryrefslogtreecommitdiff
path: root/src/arch/x86/isa/insts
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2008-10-12 23:00:07 -0700
committerGabe Black <gblack@eecs.umich.edu>2008-10-12 23:00:07 -0700
commit564eda827bc9ebe3bacfb9a44838e4abc1deb61b (patch)
treef88bd0326ea02aab5751a6080aaaa22aa958c22c /src/arch/x86/isa/insts
parenta2e0d539d89643ce5243be9b8a0be4c3bcee7520 (diff)
downloadgem5-564eda827bc9ebe3bacfb9a44838e4abc1deb61b.tar.xz
X86: Implement the swapgs instruction.
Diffstat (limited to 'src/arch/x86/isa/insts')
-rw-r--r--src/arch/x86/isa/insts/system/segmentation.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/arch/x86/isa/insts/system/segmentation.py b/src/arch/x86/isa/insts/system/segmentation.py
index 97846f79c..49d8eb110 100644
--- a/src/arch/x86/isa/insts/system/segmentation.py
+++ b/src/arch/x86/isa/insts/system/segmentation.py
@@ -167,4 +167,12 @@ def macroop LIDT_16_P
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
+};
'''