diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2008-10-12 23:00:07 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2008-10-12 23:00:07 -0700 |
commit | 564eda827bc9ebe3bacfb9a44838e4abc1deb61b (patch) | |
tree | f88bd0326ea02aab5751a6080aaaa22aa958c22c /src/arch/x86/isa/insts/system/segmentation.py | |
parent | a2e0d539d89643ce5243be9b8a0be4c3bcee7520 (diff) | |
download | gem5-564eda827bc9ebe3bacfb9a44838e4abc1deb61b.tar.xz |
X86: Implement the swapgs instruction.
Diffstat (limited to 'src/arch/x86/isa/insts/system/segmentation.py')
-rw-r--r-- | src/arch/x86/isa/insts/system/segmentation.py | 8 |
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 +}; ''' |