arch-x86: Fix FLDCW_P and FNSTCW_P to use rip.

FLDCW_P and FNSTCW_P should use rip to compute address.

Change-Id: Ide7327e243d42bdd8791e43773385b2a79d45418
Signed-off-by: Zhengrong Wang <seanzw@ucla.edu>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22483
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
seanzw
2019-11-01 10:34:31 -07:00
committed by ZHENGRONG WANG
parent 55eef302d4
commit f97051aa4f

View File

@@ -43,7 +43,7 @@ def macroop FLDCW_M {
};
def macroop FLDCW_P {
ld t1, seg, sib, disp, dataSize=2
ld t1, seg, riprel, disp, dataSize=2
wrval fcw, t1
};
@@ -57,6 +57,6 @@ def macroop FNSTCW_M {
def macroop FNSTCW_P {
rdip t7
rdval t1, fcw
st t1, seg, sib, disp, dataSize=2
st t1, seg, riprel, disp, dataSize=2
};
'''